Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/404.html → 404.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>SUI2</title>
<title>{{title}}</title>
<meta charset="utf-8">
<meta name="description" content="a startpage for your server and / or new tab page">
<meta name="description" content="{{description}}">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link rel="shortcut icon" href="/icon-512.png" type="image/png">
<style>
Expand Down
2 changes: 2 additions & 0 deletions data.example.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "SUI2",
"description": "a startpage for your server and / or new tab page",
"apps" : [
{
"name": "Cloud",
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<html>

<head>
<title>SUI2</title>
<title>{{title}}</title>
<meta charset="utf-8">
<meta name="description" content="a startpage for your server and / or new tab page">
<meta name="description" content="{{description}}">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link rel="shortcut icon" href="/icon-512.png" type="image/png">
<link rel="stylesheet" href="/scss/styles.scss" />
Expand Down Expand Up @@ -39,7 +39,7 @@ <h2>Color themes</h2>
</div>

<footer>
Project: <a href="https://github.com/reorx/sui2">reorx/suis</a>
Project: <a href="https://github.com/reorx/sui2">reorx/sui2</a>
Icons: <a href="https://icon-sets.iconify.design/mdi/">Iconify MDI</a>
</footer>
</div>
Expand Down
3 changes: 2 additions & 1 deletion live-server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ if (!fs.existsSync(dataFilePath)) {
fs.copyFileSync(path.resolve(buildDir, 'data.example.json'), dataFilePath)
}

if (!fs.existsSync(path.resolve(outDir, 'index.html'))) {
if (!fs.existsSync(path.resolve(outDir, 'index.html')) &&
!fs.existsSync(path.resolve(outDir, '404.html'))) {
console.log('run initial build')
buildStartpage((err, stdout, stderr) => {
if (err) {
Expand Down
4 changes: 2 additions & 2 deletions live-server/editor/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -12,7 +12,7 @@
<div class="main">
<div class="left">
<div class="header">
<h2>SUI Live Editor</h2>
<h2>SUI2 Live Editor</h2>
<button class="fn-build">Build</button>
</div>
<div class="editor"></div>
Expand Down
1 change: 1 addition & 0 deletions live-server/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineConfig({
rolupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
page404: resolve(__dirname, '404.html'),
},
},
},
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default defineConfig({
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
page404: resolve(__dirname, '404.html'),
},
},
},
Expand Down