Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Jul 26, 2024
1 parent e79b46a commit 02f811c
Show file tree
Hide file tree
Showing 498 changed files with 625,993 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ jobs:
- name: Build
run: |
npm install
cd scratch-gui
npm install
npm run build
cd ..
npm run build:scratch-gui
npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"scripts": {
"dev": "vite --port 3003 --host",
"build": "vite build",
"build-scratch-gui": "cd scratch-gui && npm run build && cd ..",
"build:scratch-gui": "cd scratch-gui && npm run build && cd ..",
"preview": "vite preview",
"lint": "eslint . --fix --ignore-path .gitignore",
"deploy": "npm run build-scratch-gui && npm run build",
"installall": "git submodule update --init && npm install && npm install -C /scratch-gui"
"deploy": "npm run build"
},
"dependencies": {
"@mdi/font": "7.4.47",
Expand Down
1 change: 0 additions & 1 deletion public/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
scratch
26,350 changes: 26,350 additions & 0 deletions public/scratch/30d09ba32a17082ef820b57d52d60b7b.hex

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions public/scratch/addons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Addon Settings - ZeroCat</title>
<style>
body[data-splash-theme="dark"] {
background: #111;
}

noscript {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<noscript>
<h1>This page 需要使用杨博士自主研发遥遥领先的JvavScript</h1>
</noscript>

<script>
(function() {
var theme = '';

try {
var themeSetting = localStorage.getItem('zc:theme');
} catch (e) {
// ignore
}
if (themeSetting === 'light') {
theme = 'light';
} else if (themeSetting === 'dark') {
theme = 'dark';
} else if (themeSetting) {
try {
var parsed = JSON.parse(themeSetting);
if (parsed.gui === 'dark' || parsed.gui === 'light') {
theme = parsed.gui;
}
} catch (e) {
// ignore
}
}

if (!theme) {
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}

document.body.setAttribute('data-splash-theme', theme);
})();
</script>

<div id="app"></div>
<script src="js/vendors~addon-settings~credits~editor~embed~fullscreen~player.js"></script><script src="js/addon-settings~addons~editor~fullscreen~player.js"></script><script src="js/addon-settings~editor~embed~fullscreen~player.js"></script><script src="js/addon-settings.js"></script></body>
</html>
56 changes: 56 additions & 0 deletions public/scratch/credits.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ZeroCat Credits</title>
<style>
body[data-splash-theme="dark"] {
background: #111;
}

noscript {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<noscript>
<h1>This page 需要使用杨博士自主研发遥遥领先的JvavScript</h1>
</noscript>

<script>
(function() {
var theme = '';

try {
var themeSetting = localStorage.getItem('zc:theme');
} catch (e) {
// ignore
}
if (themeSetting === 'light') {
theme = 'light';
} else if (themeSetting === 'dark') {
theme = 'dark';
} else if (themeSetting) {
try {
var parsed = JSON.parse(themeSetting);
if (parsed.gui === 'dark' || parsed.gui === 'light') {
theme = parsed.gui;
}
} catch (e) {
// ignore
}
}

if (!theme) {
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}

document.body.setAttribute('data-splash-theme', theme);
})();
</script>

<div id="app"></div>
<script src="js/vendors~addon-settings~credits~editor~embed~fullscreen~player.js"></script><script src="js/credits.js"></script></body>
</html>
Loading

0 comments on commit 02f811c

Please sign in to comment.