Skip to content

Commit c5860eb

Browse files
committed
npm run format
1 parent dd1ecdd commit c5860eb

30 files changed

+7948
-7826
lines changed

.github/workflows/pages.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,50 @@
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ['main']
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
88

9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
1111

1212
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
1313
permissions:
14-
contents: read
15-
pages: write
16-
id-token: write
14+
contents: read
15+
pages: write
16+
id-token: write
1717

1818
# Allow one concurrent deployment
1919
concurrency:
20-
group: 'pages'
21-
cancel-in-progress: true
20+
group: "pages"
21+
cancel-in-progress: true
2222

2323
jobs:
24-
# Single deploy job since we're just deploying
25-
deploy:
26-
environment:
27-
name: github-pages
28-
url: ${{ steps.deployment.outputs.page_url }}
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v4
33-
- name: Set up Node
34-
uses: actions/setup-node@v4
35-
with:
36-
node-version: 22
37-
cache: 'npm'
38-
- name: Install dependencies
39-
run: npm ci
40-
- name: Build
41-
run: npm run build
42-
- name: Setup Pages
43-
uses: actions/configure-pages@v4
44-
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v3
46-
with:
47-
# Upload dist folder
48-
path: './dist'
49-
- name: Deploy to GitHub Pages
50-
id: deployment
51-
uses: actions/deploy-pages@v4
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Set up Node
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 22
37+
cache: "npm"
38+
- name: Install dependencies
39+
run: npm ci
40+
- name: Build
41+
run: npm run build
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v4
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
46+
with:
47+
# Upload dist folder
48+
path: "./dist"
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bb-datastore-playground
1+
# bb-datastore-playground
22

33
This project is under construction. It is just a proof-of-concept for now.
44

eslint.config.mjs

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,48 @@ import lodashPlugin from "eslint-plugin-lodash";
88
import youDontNeedLodashPlugin from "eslint-plugin-you-dont-need-lodash-underscore";
99

1010
export default [
11-
{
12-
ignores: ["dist/**", "node_modules/**"],
13-
},
14-
{
15-
files: ["**/*.{js,jsx,ts,tsx}"],
16-
languageOptions: {
17-
parser: tsParser,
18-
parserOptions: {
19-
ecmaVersion: "latest",
20-
sourceType: "module",
21-
ecmaFeatures: {
22-
jsx: true,
23-
},
24-
},
25-
globals: {
26-
...globals.browser,
27-
...globals.es2021,
28-
},
29-
},
30-
plugins: {
31-
"@typescript-eslint": tsPlugin,
32-
react: reactPlugin,
33-
"react-hooks": reactHooksPlugin,
34-
lodash: lodashPlugin,
35-
"you-dont-need-lodash-underscore": youDontNeedLodashPlugin,
11+
{
12+
ignores: ["dist/**", "node_modules/**"],
3613
},
37-
rules: {
38-
...js.configs.recommended.rules,
39-
...tsPlugin.configs.recommended.rules,
40-
...reactPlugin.configs.recommended.rules,
41-
...reactHooksPlugin.configs.recommended.rules,
42-
...youDontNeedLodashPlugin.configs.compatible.rules,
43-
curly: ["error", "all"],
44-
"no-undef": "off",
45-
"no-unused-vars": "off",
46-
"@typescript-eslint/no-unused-vars": "off",
47-
"@typescript-eslint/no-explicit-any": "off",
48-
},
49-
settings: {
50-
react: {
51-
version: "detect",
52-
},
14+
{
15+
files: ["**/*.{js,jsx,ts,tsx}"],
16+
languageOptions: {
17+
parser: tsParser,
18+
parserOptions: {
19+
ecmaVersion: "latest",
20+
sourceType: "module",
21+
ecmaFeatures: {
22+
jsx: true,
23+
},
24+
},
25+
globals: {
26+
...globals.browser,
27+
...globals.es2021,
28+
},
29+
},
30+
plugins: {
31+
"@typescript-eslint": tsPlugin,
32+
react: reactPlugin,
33+
"react-hooks": reactHooksPlugin,
34+
lodash: lodashPlugin,
35+
"you-dont-need-lodash-underscore": youDontNeedLodashPlugin,
36+
},
37+
rules: {
38+
...js.configs.recommended.rules,
39+
...tsPlugin.configs.recommended.rules,
40+
...reactPlugin.configs.recommended.rules,
41+
...reactHooksPlugin.configs.recommended.rules,
42+
...youDontNeedLodashPlugin.configs.compatible.rules,
43+
curly: ["error", "all"],
44+
"no-undef": "off",
45+
"no-unused-vars": "off",
46+
"@typescript-eslint/no-unused-vars": "off",
47+
"@typescript-eslint/no-explicit-any": "off",
48+
},
49+
settings: {
50+
react: {
51+
version: "detect",
52+
},
53+
},
5354
},
54-
},
5555
];

index.html

Lines changed: 51 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,53 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" dir="ltr">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta
6-
name="viewport"
7-
content="width=device-width, initial-scale=1, shrink-to-fit=no"
8-
/>
9-
<title>BB Datastore Playground</title>
10-
<link
11-
rel="icon"
12-
type="image/svg+xml"
13-
href="/assets/images/BBDatastorePlaygroundLogo.svg"
14-
/>
15-
<!-- Start Single Page Apps for GitHub Pages -->
16-
<script type="text/javascript">
17-
(function (l) {
18-
if (l.search[1] === "/") {
19-
var decoded = l.search
20-
.slice(1)
21-
.split("&")
22-
.map(function (s) {
23-
return s.replace(/~and~/g, "&");
24-
})
25-
.join("?");
26-
window.history.replaceState(
27-
null,
28-
null,
29-
l.pathname.slice(0, -1) + decoded + l.hash,
30-
);
31-
}
32-
})(window.location);
33-
</script>
34-
<!-- End Single Page Apps for GitHub Pages -->
35-
<link
36-
rel="stylesheet"
37-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
38-
/>
39-
<style>
40-
.material-symbols-outlined {
41-
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
42-
}
43-
</style>
44-
</head>
45-
<body>
46-
<div id="root" style="height: 100%"></div>
47-
<script type="module" src="/src/main/index.tsx"></script>
48-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
8+
/>
9+
<title>BB Datastore Playground</title>
10+
<link
11+
rel="icon"
12+
type="image/svg+xml"
13+
href="/assets/images/BBDatastorePlaygroundLogo.svg"
14+
/>
15+
<!-- Start Single Page Apps for GitHub Pages -->
16+
<script type="text/javascript">
17+
(function (l) {
18+
if (l.search[1] === "/") {
19+
var decoded = l.search
20+
.slice(1)
21+
.split("&")
22+
.map(function (s) {
23+
return s.replace(/~and~/g, "&");
24+
})
25+
.join("?");
26+
window.history.replaceState(
27+
null,
28+
null,
29+
l.pathname.slice(0, -1) + decoded + l.hash
30+
);
31+
}
32+
})(window.location);
33+
</script>
34+
<!-- End Single Page Apps for GitHub Pages -->
35+
<link
36+
rel="stylesheet"
37+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
38+
/>
39+
<style>
40+
.material-symbols-outlined {
41+
font-variation-settings:
42+
"FILL" 0,
43+
"wght" 400,
44+
"GRAD" 0,
45+
"opsz" 24;
46+
}
47+
</style>
48+
</head>
49+
<body>
50+
<div id="root" style="height: 100%"></div>
51+
<script type="module" src="/src/main/index.tsx"></script>
52+
</body>
4953
</html>

0 commit comments

Comments
 (0)