Skip to content

Commit 77dab55

Browse files
committed
Reformat files, add local npm
1 parent e4621a8 commit 77dab55

File tree

10 files changed

+162
-56
lines changed

10 files changed

+162
-56
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
js/
1+
js/
2+
node_modules/

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "plugins": ["prettier-plugin-sh"] }

.vscode/copyright.code-snippets

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
"body": [
55
"<!--",
66
" baer1 website\n Copyright (C) 2024 baer1\n\n This website is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n A copy of the GNU General Public License can be found on this website's\n GitHub repository (LICENSE). If not, see <https://www.gnu.org/licenses/>.\n\n [email protected]",
7-
"-->\n"
7+
"-->\n",
88
],
9-
"description": "Insert copyright notice formatted for HTML"
9+
"description": "Insert copyright notice formatted for HTML",
1010
},
1111
"JS/CSS copyright": {
1212
"prefix": "!copyright-js",
1313
"body": [
1414
"/*",
1515
" baer1 website\n Copyright (C) 2024 baer1\n\n This website is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n A copy of the GNU General Public License can be found on this website's\n GitHub repository (LICENSE). If not, see <https://www.gnu.org/licenses/>.\n\n [email protected]",
16-
"*/\n"
16+
"*/\n",
1717
],
18-
"description": "Insert copyright notice formatted for JS and CSS"
18+
"description": "Insert copyright notice formatted for JS and CSS",
1919
},
2020
"Copyright": {
2121
"prefix": "!copyright",
2222
"body": [
23-
" baer1 website\n Copyright (C) 2024 baer1\n\n This website is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n A copy of the GNU General Public License can be found on this website's\n GitHub repository (LICENSE). If not, see <https://www.gnu.org/licenses/>.\n\n [email protected]"
23+
" baer1 website\n Copyright (C) 2024 baer1\n\n This website is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n A copy of the GNU General Public License can be found on this website's\n GitHub repository (LICENSE). If not, see <https://www.gnu.org/licenses/>.\n\n [email protected]",
2424
],
25-
"description": "Insert copyright notice"
26-
}
25+
"description": "Insert copyright notice",
26+
},
2727
}

package-lock.json

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"devDependencies": {
3+
"prettier": "^3.4.1",
4+
"prettier-plugin-sh": "^0.14.0",
5+
"typescript": "^5.7.2"
6+
}
7+
}

tsconfig.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -25,7 +25,7 @@
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "commonjs", /* Specify what module code is generated. */
28+
"module": "commonjs" /* Specify what module code is generated. */,
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
3030
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
@@ -55,7 +55,7 @@
5555
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
5656
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5757
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
"outDir": "www/js", /* Specify an output folder for all emitted files. */
58+
"outDir": "www/js" /* Specify an output folder for all emitted files. */,
5959
// "removeComments": true, /* Disable emitting comments. */
6060
// "noEmit": true, /* Disable emitting files from a compilation. */
6161
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -65,7 +65,7 @@
6565
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
6666
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
6767
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68-
"newLine": "crlf", /* Set the newline character for emitting files. */
68+
"newLine": "crlf" /* Set the newline character for emitting files. */,
6969
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
7070
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
7171
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
@@ -77,12 +77,12 @@
7777
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7878
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
7979
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
80+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
8181
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
82+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
8383

8484
/* Type Checking */
85-
"strict": true, /* Enable all strict type-checking options. */
85+
"strict": true /* Enable all strict type-checking options. */,
8686
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
8787
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
8888
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -104,6 +104,6 @@
104104

105105
/* Completeness */
106106
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
107+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
108108
}
109109
}

www/css/font/roboto/roboto.css

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
font-weight: 100;
4444
font-display: swap;
4545
src: url(KFOiCnqEu92Fr1Mu51QrEz8dL_nz.woff2) format("woff2");
46-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
47-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
48-
U+1EA0-1EF9, U+20AB;
46+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
47+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
48+
U+0329, U+1EA0-1EF9, U+20AB;
4949
}
5050
/* latin-ext */
5151
@font-face {
@@ -113,9 +113,9 @@
113113
font-weight: 300;
114114
font-display: swap;
115115
src: url(KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2) format("woff2");
116-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
117-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
118-
U+1EA0-1EF9, U+20AB;
116+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
117+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
118+
U+0329, U+1EA0-1EF9, U+20AB;
119119
}
120120
/* latin-ext */
121121
@font-face {
@@ -183,9 +183,9 @@
183183
font-weight: 400;
184184
font-display: swap;
185185
src: url(KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2) format("woff2");
186-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
187-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
188-
U+1EA0-1EF9, U+20AB;
186+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
187+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
188+
U+0329, U+1EA0-1EF9, U+20AB;
189189
}
190190
/* latin-ext */
191191
@font-face {
@@ -253,9 +253,9 @@
253253
font-weight: 500;
254254
font-display: swap;
255255
src: url(KFOjCnqEu92Fr1Mu51S7ACc1CsTKlA.woff2) format("woff2");
256-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
257-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
258-
U+1EA0-1EF9, U+20AB;
256+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
257+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
258+
U+0329, U+1EA0-1EF9, U+20AB;
259259
}
260260
/* latin-ext */
261261
@font-face {
@@ -323,9 +323,9 @@
323323
font-weight: 700;
324324
font-display: swap;
325325
src: url(KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2) format("woff2");
326-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
327-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
328-
U+1EA0-1EF9, U+20AB;
326+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
327+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
328+
U+0329, U+1EA0-1EF9, U+20AB;
329329
}
330330
/* latin-ext */
331331
@font-face {
@@ -393,9 +393,9 @@
393393
font-weight: 900;
394394
font-display: swap;
395395
src: url(KFOjCnqEu92Fr1Mu51TLBCc1CsTKlA.woff2) format("woff2");
396-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
397-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
398-
U+1EA0-1EF9, U+20AB;
396+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
397+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
398+
U+0329, U+1EA0-1EF9, U+20AB;
399399
}
400400
/* latin-ext */
401401
@font-face {
@@ -463,9 +463,9 @@
463463
font-weight: 100;
464464
font-display: swap;
465465
src: url(KFOkCnqEu92Fr1MmgVxHIzIFKw.woff2) format("woff2");
466-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
467-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
468-
U+1EA0-1EF9, U+20AB;
466+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
467+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
468+
U+0329, U+1EA0-1EF9, U+20AB;
469469
}
470470
/* latin-ext */
471471
@font-face {
@@ -533,9 +533,9 @@
533533
font-weight: 300;
534534
font-display: swap;
535535
src: url(KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format("woff2");
536-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
537-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
538-
U+1EA0-1EF9, U+20AB;
536+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
537+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
538+
U+0329, U+1EA0-1EF9, U+20AB;
539539
}
540540
/* latin-ext */
541541
@font-face {
@@ -603,9 +603,9 @@
603603
font-weight: 400;
604604
font-display: swap;
605605
src: url(KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format("woff2");
606-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
607-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
608-
U+1EA0-1EF9, U+20AB;
606+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
607+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
608+
U+0329, U+1EA0-1EF9, U+20AB;
609609
}
610610
/* latin-ext */
611611
@font-face {
@@ -673,9 +673,9 @@
673673
font-weight: 500;
674674
font-display: swap;
675675
src: url(KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format("woff2");
676-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
677-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
678-
U+1EA0-1EF9, U+20AB;
676+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
677+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
678+
U+0329, U+1EA0-1EF9, U+20AB;
679679
}
680680
/* latin-ext */
681681
@font-face {
@@ -743,9 +743,9 @@
743743
font-weight: 700;
744744
font-display: swap;
745745
src: url(KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format("woff2");
746-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
747-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
748-
U+1EA0-1EF9, U+20AB;
746+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
747+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
748+
U+0329, U+1EA0-1EF9, U+20AB;
749749
}
750750
/* latin-ext */
751751
@font-face {
@@ -813,9 +813,9 @@
813813
font-weight: 900;
814814
font-display: swap;
815815
src: url(KFOlCnqEu92Fr1MmYUtfCxc4EsA.woff2) format("woff2");
816-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
817-
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
818-
U+1EA0-1EF9, U+20AB;
816+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
817+
U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
818+
U+0329, U+1EA0-1EF9, U+20AB;
819819
}
820820
/* latin-ext */
821821
@font-face {

www/css/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ baer1-button {
130130
background: var(--color);
131131
color: var(--text-color);
132132
font-weight: 300;
133-
transition: background 0.4s, transform 0.2s, filter 0.35s;
133+
transition:
134+
background 0.4s,
135+
transform 0.2s,
136+
filter 0.35s;
134137
cursor: pointer;
135138
}
136139
baer1-button:hover {

www/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
-->
1515

16-
<!DOCTYPE html>
16+
<!doctype html>
1717
<html lang="en">
1818
<head>
1919
<meta charset="UTF-8" />

www/ts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class CopiedPopup extends HTMLElement {
8989
(resolve: () => void, reject: (reason?: any) => void) => {
9090
this._resolve = resolve;
9191
this._reject = reject;
92-
}
92+
},
9393
);
9494

9595
// Play pop-up animation
@@ -102,7 +102,7 @@ class CopiedPopup extends HTMLElement {
102102
duration: 500,
103103
easing: "ease-out",
104104
fill: "forwards",
105-
}
105+
},
106106
).addEventListener("finish", () => {
107107
// Set timeout
108108
if (timeout) timeout = setTimeout(this._reject, timeout);

0 commit comments

Comments
 (0)