Skip to content

Commit 5b83426

Browse files
Initial Commit
1 parent 7deb694 commit 5b83426

File tree

103 files changed

+9092
-12334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+9092
-12334
lines changed

README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore renamed to TrainingUFO/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
node_modules
33
/dist
44

5-
65
# local env files
76
.env.local
87
.env.*.local
@@ -21,3 +20,6 @@ pnpm-debug.log*
2120
*.njsproj
2221
*.sln
2322
*.sw?
23+
24+
# Deployment
25+
/.wrangler

TrainingUFO/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Training UFO
2+
3+
# Built with VueJS + Vite
4+
5+
## Project setup
6+
```
7+
npm install
8+
```
9+
10+
### Compiles and hot-reloads for development
11+
```
12+
npm run dev
13+
```
14+
15+
### Compiles and minifies for production
16+
```
17+
npm run build
18+
```

TrainingUFO/generateFontaine.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { FontaineTransform } from 'fontaine';
2+
import fs from 'fs';
3+
4+
const css = fs.readFileSync('./src/assets/font-faces.css').toString();
5+
const options = {
6+
fallbacks: ['BlinkMacSystemFont', 'Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans'],
7+
resolvePath: id => `B:/NECWireSizer/nec_wire_sizer/public/fonts/${id}`
8+
};
9+
10+
(async function() {
11+
const s = await FontaineTransform.raw(options).transform(css, "");
12+
fs.writeFileSync('./font-faces-fallbacks.css', s.code);
13+
})();

TrainingUFO/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<meta name="description" content="Training UFO is a suite of NEC visualization tools and articles designed to make you smartererer than you were yesterday.">
8+
9+
<link rel="preconnect" href="https://fonts.googleapis.com">
10+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11+
12+
<link href="https://fonts.googleapis.com/css2?family=Libertinus+Math&family=Rajdhani:wght@500;600;700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
13+
<link href="https://fonts.googleapis.com/css2?display=swap&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet" />
14+
<link href="https://fonts.googleapis.com/css2?family=Libertinus+Math&display=swap" rel="stylesheet">
15+
16+
<link rel="icon" href="/logo.svg">
17+
18+
<title>Training UFO—Wire Ampacity Vizualizer</title>
19+
</head>
20+
<body>
21+
<noscript>
22+
<strong>We're sorry, but Training UFO doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
23+
</noscript>
24+
25+
<div id="app"></div>
26+
<script type="module" src="/src/main.js"></script>
27+
</body>
28+
</html>
File renamed without changes.

0 commit comments

Comments
 (0)