Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Jul 8, 2024
1 parent 1d36f0a commit fe43d02
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 7,442 deletions.
3 changes: 1 addition & 2 deletions src/routes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ const insert = JSON.parse(await readFile(new URL('./data.json',

const __dirname = path.resolve();

const text404 = readFileSync(path.normalize(__dirname + '/views/404.html'), 'utf8');
const text404 = readFileSync(path.normalize(__dirname + '/views/error.html'), 'utf8');
const pages = {
'index': 'index.html',
/* Main */
'documentation': 'docs.html',
'faq': 'faq.html',
'j': 'hidden.html',
's': 'pages/frame.html',
'browse': 'pages/surf.html',
'credits': 'pages/nav/credits.html',
Expand Down
6 changes: 0 additions & 6 deletions src/templates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ const header = tryReadFile(path.normalize(__dirname + '/views/pages/misc/deobf/h

footer = tryReadFile(path.normalize(__dirname + '/views/pages/misc/deobf/footer.html')),

// Never used
// description = tryReadFile(path.normalize(__dirname + '/views/pages/misc/deobf/desc.html')),

documentation = tryReadFile(path.normalize(__dirname + '/views/pages/misc/deobf/docs.html')),

faq = tryReadFile(path.normalize(__dirname + '/views/pages/misc/deobf/faq.html')),
Expand All @@ -23,9 +20,6 @@ loadTemplates = str => {
str = insertText('<!--HEADER-->', str, header);
str = insertText('<!--FOOTER-->', str, footer);

// Never used
// str = insertText('<!--DESC-->', str, description);

// Used only on docs.html
str = insertText('<!--DOCS-->', str, documentation);
// Used only on faq.html
Expand Down
44 changes: 0 additions & 44 deletions views/401.html

This file was deleted.

36 changes: 0 additions & 36 deletions views/404.html

This file was deleted.

Loading

0 comments on commit fe43d02

Please sign in to comment.