Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

Commit b5df34f

Browse files
committed
formatting
1 parent a524824 commit b5df34f

7 files changed

Lines changed: 196 additions & 197 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"name": "StopMalwareContent Monorepo",
3-
"build": {
4-
"dockerfile": "Dockerfile"
2+
"name": "StopMalwareContent Monorepo",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"codespaces": {
8+
"openFiles": ["README.md", "CONTRIBUTING.md"]
59
},
6-
"customizations": {
7-
"codespaces": {
8-
"openFiles": ["README.md", "CONTRIBUTING.md"]
9-
},
10-
"vscode": {
11-
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
12-
}
10+
"vscode": {
11+
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
12+
}
13+
},
14+
"postCreateCommand": "pnpm install",
15+
"postStartCommand": "pnpm start:dev",
16+
"postAttachCommand": "pnpm audit",
17+
"appPort": [4321, 3000],
18+
"forwardPorts": [4321, 3000],
19+
"portsAttributes": {
20+
"4321": {
21+
"label": "Dashboard",
22+
"onAutoForward": "openPreview"
1323
},
14-
"postCreateCommand": "pnpm install",
15-
"postStartCommand": "pnpm start:dev",
16-
"postAttachCommand": "pnpm audit",
17-
"appPort": [4321, 3000],
18-
"forwardPorts": [4321, 3000],
19-
"portsAttributes": {
20-
"4321": {
21-
"label": "Dashboard",
22-
"onAutoForward": "openPreview"
23-
},
24-
"3000": {
25-
"label": "API",
26-
"onAutoForward": "notify"
27-
}
24+
"3000": {
25+
"label": "API",
26+
"onAutoForward": "notify"
2827
}
28+
}
2929
}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contact_links:
55
about: Report a site using this link, or request a site review.
66
- name: Security issues
77
url: https://github.com/StopMalwareContent/Code/security
8-
about: DO NOT REPORT SECURITY ISSUES PUBLICLY, instead please visit this link.
8+
about: DO NOT REPORT SECURITY ISSUES PUBLICLY, instead please visit this link.

.github/workflows/build.yml

Lines changed: 143 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -4,146 +4,146 @@ on:
44
pull_request:
55

66
jobs:
7-
extension:
8-
name: Build extension
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v5
13-
14-
- name: Cache Astro data # Speeds up postinstall time
15-
uses: actions/cache@v4
16-
with:
17-
path: |
18-
**/.astro
19-
key: smc-astro-cache-${{ github.repository }}
20-
21-
- name: Setup pnpm
22-
uses: pnpm/action-setup@v4
23-
24-
- name: Setup Node.js
25-
uses: actions/setup-node@v5
26-
with:
27-
node-version: 22.x
28-
cache: 'pnpm'
29-
cache-dependency-path: './pnpm-lock.yaml'
30-
31-
- name: Install dependencies
32-
run: pnpm install --frozen-lockfile
33-
34-
- name: Build extension
35-
run: pnpm ext build
36-
37-
- name: Upload extension
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: SMC Extension ${{ github.sha }}
41-
path: ./apps/extension/dist
42-
43-
docs:
44-
name: Build docs
45-
runs-on: ubuntu-latest
46-
steps:
47-
- name: Checkout repository
48-
uses: actions/checkout@v5
49-
50-
- name: Cache Astro data
51-
uses: actions/cache@v4
52-
with:
53-
path: |
54-
**/.astro
55-
key: smc-astro-cache-${{ github.repository }}
56-
57-
- name: Setup pnpm
58-
uses: pnpm/action-setup@v4
59-
60-
- name: Setup Node.js
61-
uses: actions/setup-node@v5
62-
with:
63-
node-version: 22.x
64-
cache: 'pnpm'
65-
cache-dependency-path: './pnpm-lock.yaml'
66-
67-
- name: Install dependencies
68-
run: pnpm install --frozen-lockfile
69-
70-
- name: Build extension
71-
run: pnpm doc build
72-
73-
- name: Upload extension
74-
uses: actions/upload-artifact@v4
75-
with:
76-
name: SMC Docs ${{ github.sha }}
77-
path: ./apps/dashboard/dist
78-
79-
dashboard:
80-
name: Build dashboard
81-
runs-on: ubuntu-latest
82-
steps:
83-
- name: Checkout repository
84-
uses: actions/checkout@v5
85-
86-
- name: Cache Astro data
87-
uses: actions/cache@v4
88-
with:
89-
path: |
90-
**/.astro
91-
key: smc-astro-cache-${{ github.repository }}
92-
93-
- name: Setup pnpm
94-
uses: pnpm/action-setup@v4
95-
96-
- name: Setup Node.js
97-
uses: actions/setup-node@v5
98-
with:
99-
node-version: 22.x
100-
cache: 'pnpm'
101-
cache-dependency-path: './pnpm-lock.yaml'
102-
103-
- name: Install dependencies
104-
run: pnpm install --frozen-lockfile
105-
106-
- name: Build extension
107-
run: pnpm dash build
108-
109-
- name: Upload extension
110-
uses: actions/upload-artifact@v4
111-
with:
112-
name: SMC Dashboard ${{ github.sha }}
113-
path: ./apps/dashboard/dist
114-
115-
api:
116-
name: Build API
117-
runs-on: ubuntu-latest
118-
steps:
119-
- name: Checkout repository
120-
uses: actions/checkout@v5
121-
122-
- name: Cache Astro data # Speeds up postinstall time
123-
uses: actions/cache@v4
124-
with:
125-
path: |
126-
**/.astro
127-
key: smc-astro-cache-${{ github.repository }}
128-
129-
- name: Setup pnpm
130-
uses: pnpm/action-setup@v4
131-
132-
- name: Setup Node.js
133-
uses: actions/setup-node@v5
134-
with:
135-
node-version: 22.x
136-
cache: 'pnpm'
137-
cache-dependency-path: './pnpm-lock.yaml'
138-
139-
- name: Install dependencies
140-
run: pnpm install --frozen-lockfile
141-
142-
- name: Build extension
143-
run: pnpm api build
144-
145-
- name: Upload extension
146-
uses: actions/upload-artifact@v4
147-
with:
148-
name: SMC API ${{ github.sha }}
149-
path: ./apps/api/dist
7+
extension:
8+
name: Build extension
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v5
13+
14+
- name: Cache Astro data # Speeds up postinstall time
15+
uses: actions/cache@v4
16+
with:
17+
path: |
18+
**/.astro
19+
key: smc-astro-cache-${{ github.repository }}
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v5
26+
with:
27+
node-version: 22.x
28+
cache: "pnpm"
29+
cache-dependency-path: "./pnpm-lock.yaml"
30+
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Build extension
35+
run: pnpm ext build
36+
37+
- name: Upload extension
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: SMC Extension ${{ github.sha }}
41+
path: ./apps/extension/dist
42+
43+
docs:
44+
name: Build docs
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v5
49+
50+
- name: Cache Astro data
51+
uses: actions/cache@v4
52+
with:
53+
path: |
54+
**/.astro
55+
key: smc-astro-cache-${{ github.repository }}
56+
57+
- name: Setup pnpm
58+
uses: pnpm/action-setup@v4
59+
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v5
62+
with:
63+
node-version: 22.x
64+
cache: "pnpm"
65+
cache-dependency-path: "./pnpm-lock.yaml"
66+
67+
- name: Install dependencies
68+
run: pnpm install --frozen-lockfile
69+
70+
- name: Build extension
71+
run: pnpm doc build
72+
73+
- name: Upload extension
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: SMC Docs ${{ github.sha }}
77+
path: ./apps/dashboard/dist
78+
79+
dashboard:
80+
name: Build dashboard
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Checkout repository
84+
uses: actions/checkout@v5
85+
86+
- name: Cache Astro data
87+
uses: actions/cache@v4
88+
with:
89+
path: |
90+
**/.astro
91+
key: smc-astro-cache-${{ github.repository }}
92+
93+
- name: Setup pnpm
94+
uses: pnpm/action-setup@v4
95+
96+
- name: Setup Node.js
97+
uses: actions/setup-node@v5
98+
with:
99+
node-version: 22.x
100+
cache: "pnpm"
101+
cache-dependency-path: "./pnpm-lock.yaml"
102+
103+
- name: Install dependencies
104+
run: pnpm install --frozen-lockfile
105+
106+
- name: Build extension
107+
run: pnpm dash build
108+
109+
- name: Upload extension
110+
uses: actions/upload-artifact@v4
111+
with:
112+
name: SMC Dashboard ${{ github.sha }}
113+
path: ./apps/dashboard/dist
114+
115+
api:
116+
name: Build API
117+
runs-on: ubuntu-latest
118+
steps:
119+
- name: Checkout repository
120+
uses: actions/checkout@v5
121+
122+
- name: Cache Astro data # Speeds up postinstall time
123+
uses: actions/cache@v4
124+
with:
125+
path: |
126+
**/.astro
127+
key: smc-astro-cache-${{ github.repository }}
128+
129+
- name: Setup pnpm
130+
uses: pnpm/action-setup@v4
131+
132+
- name: Setup Node.js
133+
uses: actions/setup-node@v5
134+
with:
135+
node-version: 22.x
136+
cache: "pnpm"
137+
cache-dependency-path: "./pnpm-lock.yaml"
138+
139+
- name: Install dependencies
140+
run: pnpm install --frozen-lockfile
141+
142+
- name: Build extension
143+
run: pnpm api build
144+
145+
- name: Upload extension
146+
uses: actions/upload-artifact@v4
147+
with:
148+
name: SMC API ${{ github.sha }}
149+
path: ./apps/api/dist

.github/workflows/publish-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish extension
22

33
on:
4-
push:
4+
push:
55

66
jobs:
77
changelog:

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ You can submit a security vulnerability via GitHub. On the security page, choose
1414
These details will be shared only with the StopMalwareContent core team, and not anyone else.
1515

1616
<!-- markdownlint-disable -->
17+
1718
**DO NOT REPORT SECURITY ISSUES VIA GITHUB ISSUES. DOING SO WILL PUBLICLY EXPOSE THE ISSUE.**

apps/dashboard/astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
import { defineConfig } from "astro/config"
33

4-
import node from "@astrojs/node";
4+
import node from "@astrojs/node"
55

66
// https://astro.build/config
77
export default defineConfig({
@@ -12,4 +12,4 @@ export default defineConfig({
1212
adapter: node({
1313
mode: "standalone"
1414
})
15-
})
15+
})

0 commit comments

Comments
 (0)