Skip to content

Commit 1c4cbaa

Browse files
committed
add requested files to gitignore. restore .vscode settings file. add missing admin-theme shared file.
1 parent bc6e8bb commit 1c4cbaa

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ typings/
5959

6060
# Ignore dist folder with webpack build output
6161
dist/
62+
dist-types/
63+
64+
# local storybook files
65+
storybook-static/
66+
admin/storybook-static/
6267

6368
.DS_Store
6469

.vscode/settings.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Format on save for Prettier
3+
"editor.formatOnSave": true,
4+
// Using the prettier-vscode plugin as the old eslint integration has been deprecated. More here: https://github.com/prettier/prettier-vscode/issues/870
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"[javascriptreact]": {
7+
"editor.defaultFormatter": "esbenp.prettier-vscode"
8+
},
9+
"[javascript]": {
10+
"editor.defaultFormatter": "esbenp.prettier-vscode"
11+
},
12+
"[typescriptreact]": {
13+
"editor.defaultFormatter": "esbenp.prettier-vscode"
14+
},
15+
"[typescript]": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode"
17+
},
18+
"[html]": {
19+
"editor.defaultFormatter": "vscode.html-language-features" // Set to esbenp.prettier-vscode when we are ready to reformat all HTML files
20+
}
21+
}

admin/src/admin-theme.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { createTheme } from "@material-ui/core/styles";
2+
import { defaultTheme } from "react-admin";
3+
4+
export const adminTheme = createTheme({
5+
...defaultTheme,
6+
components: {
7+
MuiDrawer: {
8+
styleOverrides: {
9+
paper: {
10+
backgroundColor: "#222222",
11+
minHeight: "100vh"
12+
}
13+
}
14+
}
15+
},
16+
palette: {
17+
primary: {
18+
main: "#1700c7"
19+
},
20+
secondary: {
21+
main: "#000000"
22+
}
23+
},
24+
typography: {
25+
fontFamily: "Inter,Arial"
26+
}
27+
});

0 commit comments

Comments
 (0)