Skip to content

Commit 3109636

Browse files
committed
chore: set git identity and normalize line endings
0 parents  commit 3109636

131 files changed

Lines changed: 15604 additions & 0 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
!.vscode/mcp.json
30+
.history/*
31+
32+
# Miscellaneous
33+
/.angular/cache
34+
.sass-cache/
35+
/connect.lock
36+
/coverage
37+
/libpeerconnection.log
38+
testem.log
39+
/typings
40+
__screenshots__/
41+
42+
# System files
43+
.DS_Store
44+
Thumbs.db

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/mcp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// For more information, visit: https://angular.dev/ai/mcp
3+
"servers": {
4+
"angular-cli": {
5+
"command": "npx",
6+
"args": ["-y", "@angular/cli", "mcp"]
7+
}
8+
}
9+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "Changes detected"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation (complete|failed)"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "Changes detected"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation (complete|failed)"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Dev Toolbox
2+
3+
A privacy-first, offline-friendly toolbox of developer utilities that runs entirely in the browser. No backend, no tracking by default.
4+
5+
## Features
6+
- Angular + TypeScript, static build output
7+
- TailwindCSS + Angular Material UI with glassmorphism styling
8+
- CodeMirror 6 editor for rich inputs
9+
- Web Workers for heavy JSON/Text operations
10+
- Offline-ready PWA (service worker)
11+
- Modular, lazy-loaded routes per tool category
12+
13+
## Local Development
14+
1. Install dependencies:
15+
16+
```bash
17+
npm install
18+
```
19+
20+
2. Run the dev server:
21+
22+
```bash
23+
npm start
24+
```
25+
26+
Open `http://localhost:4200/`.
27+
28+
## Build
29+
30+
```bash
31+
npm run build
32+
```
33+
34+
Static assets are emitted to `dist/dev-toolbox`.
35+
36+
## Tests
37+
38+
```bash
39+
npm test
40+
```
41+
42+
## Static Hosting (S3 + CloudFront)
43+
1. Build the app and upload the contents of `dist/dev-toolbox` to your S3 bucket.
44+
2. Configure S3 for static website hosting.
45+
3. CloudFront:
46+
- Set default root object to `index.html`.
47+
- Add custom error responses for 403/404 to serve `/index.html` with HTTP 200 (SPA routing).
48+
4. Cache headers (recommended):
49+
- `index.html`: `Cache-Control: no-cache`
50+
- `/*.js`, `/*.css`, assets: `Cache-Control: public, max-age=31536000, immutable`
51+
52+
## Ads / Monetization
53+
Ad placeholder lives here:
54+
- `src/app/shared/components/ad-slot/ad-slot.component.html`
55+
56+
Paste your Carbon Ads / EthicalAds / AdSense snippet in the commented section within that file.
57+
58+
## Privacy & Security Notes
59+
- All processing happens locally in the browser.
60+
- No user input is sent to any server.
61+
- Analytics are off by default and optional.
62+
- JWT decoder is **decode-only** and does not verify signatures.
63+
- “Remember my inputs” is off by default; enabling it stores inputs locally on this device.

angular.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "npm",
6+
"analytics": "07d6cd24-c3d8-4a46-815f-f85810bb6e87"
7+
},
8+
"newProjectRoot": "projects",
9+
"projects": {
10+
"dev-toolbox": {
11+
"projectType": "application",
12+
"schematics": {},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"browser": "src/main.ts",
21+
"tsConfig": "tsconfig.app.json",
22+
"webWorkerTsConfig": "tsconfig.worker.json",
23+
"assets": [
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
}
28+
],
29+
"styles": [
30+
"src/material-theme.scss",
31+
"src/styles.css"
32+
],
33+
"allowedCommonJsDependencies": [
34+
"ajv",
35+
"papaparse"
36+
]
37+
},
38+
"configurations": {
39+
"production": {
40+
"budgets": [
41+
{
42+
"type": "initial",
43+
"maximumWarning": "900kB",
44+
"maximumError": "1.5MB"
45+
},
46+
{
47+
"type": "anyComponentStyle",
48+
"maximumWarning": "4kB",
49+
"maximumError": "8kB"
50+
}
51+
],
52+
"outputHashing": "all",
53+
"serviceWorker": "ngsw-config.json"
54+
},
55+
"development": {
56+
"optimization": false,
57+
"extractLicenses": false,
58+
"sourceMap": true
59+
}
60+
},
61+
"defaultConfiguration": "production"
62+
},
63+
"serve": {
64+
"builder": "@angular/build:dev-server",
65+
"configurations": {
66+
"production": {
67+
"buildTarget": "dev-toolbox:build:production"
68+
},
69+
"development": {
70+
"buildTarget": "dev-toolbox:build:development"
71+
}
72+
},
73+
"defaultConfiguration": "development"
74+
},
75+
"test": {
76+
"builder": "@angular/build:unit-test"
77+
}
78+
}
79+
}
80+
}
81+
}

ngsw-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
3+
"index": "/index.html",
4+
"assetGroups": [
5+
{
6+
"name": "app",
7+
"installMode": "prefetch",
8+
"resources": {
9+
"files": [
10+
"/favicon.ico",
11+
"/index.csr.html",
12+
"/index.html",
13+
"/manifest.webmanifest",
14+
"/*.css",
15+
"/*.js"
16+
]
17+
}
18+
},
19+
{
20+
"name": "assets",
21+
"installMode": "lazy",
22+
"updateMode": "prefetch",
23+
"resources": {
24+
"files": [
25+
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
26+
]
27+
}
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)