-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83100b4
commit d74e865
Showing
5,506 changed files
with
1,245,253 additions
and
8,515 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
|
||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
.npmrc | ||
!.env.example | ||
.vscode/ | ||
build.zip | ||
win32_rsa | ||
win32_rsa.pub |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import path from 'path'; | ||
import dir from 'node-dir'; | ||
import fs from 'fs'; | ||
|
||
let excluded_source_files = ['src/routes/xp/starting.svelte']; | ||
|
||
let source_files = [ | ||
...dir.files('./src/', {sync: true}), | ||
'static/json/hard_drive.json', | ||
'svelte.config.js', | ||
'tailwind.config.cjs', | ||
'vite.config.js' | ||
] | ||
.filter(el => ['.js', '.json', '.svelte', '.css', '.cjs', '.html'].includes(path.extname(el))) | ||
.filter(el => !excluded_source_files.includes(el)); | ||
|
||
|
||
(async () => { | ||
|
||
let remote_files = dir.files('./static/files/', {sync: true}) | ||
.filter(file => ['.png', '.jpg', '.mp3'].includes(path.extname(file))) | ||
.filter(file => included(file)) | ||
.map(file => file.replace(/^static/i, '')); | ||
|
||
let images = dir.files('./static/images/', {sync: true}) | ||
.filter(file => ['.png', '.jpg', '.svg', '.gif'].includes(path.extname(file))) | ||
.filter(file => included(file)) | ||
.map(file => file.replace(/^static/i, '')); | ||
|
||
let fonts = dir.files('./static/fonts/', {sync: true}) | ||
.filter(file => ['.ttf'].includes(path.extname(file))) | ||
.filter(file => included(file)) | ||
.map(file => file.replace(/^static/i, '')); | ||
|
||
let audios = dir.files('./static/audio/', {sync: true}) | ||
.filter(file => ['.mp3', '.wav'].includes(path.extname(file))) | ||
.filter(file => included(file)) | ||
.map(file => file.replace(/^static/i, '')); | ||
|
||
let empties = dir.files('./static/empty/', {sync: true}) | ||
.filter(file => included(file)) | ||
.map(file => file.replace(/^static/i, '')); | ||
|
||
|
||
let assets = {remote_files, images, audios, fonts, empties}; | ||
for(let key of Object.keys(assets)){ | ||
console.log('let ' + key + ' = ' + JSON.stringify(assets[key]) + ';\n'); | ||
} | ||
})() | ||
|
||
function included(asset){ | ||
let basename = path.basename(asset); | ||
for(let file of source_files){ | ||
let content = fs.readFileSync(file, 'utf-8'); | ||
if(content.includes(basename)) return true; | ||
} | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import path from 'path'; | ||
import dir from 'node-dir'; | ||
|
||
(async () => { | ||
let files = dir.files('./src/routes/', {sync: true}).filter(file => path.extname(file) == '.svelte'); | ||
let statements = ''; | ||
for(let file of files){ | ||
let import_path = file.split('src/routes/').join('./') | ||
statements = statements + ` | ||
else if(url == '${import_path}'){ | ||
page = (await import('${import_path}')).default; | ||
}` | ||
} | ||
console.log(statements); | ||
})() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.