Skip to content

Commit

Permalink
Migrate manifest file to config & update license year
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiahblade committed Feb 8, 2023
1 parent 30df5c7 commit 200e88f
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 62 deletions.
2 changes: 1 addition & 1 deletion static/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2011 - 2022 MC Server Soft and its contributors
Copyright (c) 2011 - 2023 MC Server Soft and its contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
60 changes: 0 additions & 60 deletions static/manifest.json

This file was deleted.

65 changes: 64 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,70 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit'

const config: UserConfig = {
plugins: [sveltekit(), SvelteKitPWA(), zipPack({ inDir: 'build', outDir: 'build', outFileName: 'panel.zip' })],
plugins: [
sveltekit(),
SvelteKitPWA({
manifest: {
short_name: 'MCSS Remote',
name: 'MCSS Remote Panel',
description: 'App that allows you to remotely control MC Server Soft.',
start_url: '/',
scope: '/',
display: 'standalone',
theme_color: "#202124",
background_color: "#202124",
lang: 'en-US',
icons: [
{
src: 'icons/icon-72.png',
sizes: '72x72',
type: 'image/png',
purpose: 'any',
},
{
src: 'icons/icon-96.png',
sizes: '96x96',
type: 'image/png',
purpose: 'any',
},
{
src: 'icons/icon-128.png',
sizes: '128x128',
type: 'image/png',
purpose: 'any',
},
{
src: 'icons/icon-144.png',
sizes: '144x144',
type: 'image/png',
purpose: 'any',
},
{
src: 'icons/icon-152.png',
sizes: '152x152',
type: 'image/png',
purpose: 'any',
},
{
src: 'icons/icons-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'icons/icons-384.png',
sizes: '384x384',
type: 'image/png',
},
{
src: 'icons/icons-512.png',
sizes: '512x512',
type: 'image/png',
}
],
},

}),
zipPack({ inDir: 'build', outDir: 'build', outFileName: 'panel.zip' })],
define: {
__VERSION__: JSON.stringify(process.env.npm_package_version)
}
Expand Down

0 comments on commit 200e88f

Please sign in to comment.