Skip to content

Commit c2f7f35

Browse files
committed
update source
1 parent 52c3269 commit c2f7f35

Some content is hidden

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

106 files changed

+8480
-9445
lines changed

.gitignore

+20-42
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
1+
# Logs
2+
logs
3+
*.log
214
npm-debug.log*
225
yarn-debug.log*
236
yarn-error.log*
24-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
25-
26-
# dependencies
27-
/node_modules
28-
/.pnp
29-
.pnp.js
30-
31-
# testing
32-
/coverage
33-
34-
# production
35-
/build
36-
37-
# misc
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
3819
.DS_Store
39-
.env.local
40-
.env.development.local
41-
.env.test.local
42-
.env.production.local
43-
44-
npm-debug.log*
45-
yarn-debug.log*
46-
yarn-error.log*
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/dist/
3+
/.yarn_home

.prettierrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 105,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid"
10+
}

README.md

+14-20
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,33 @@ https://mesastar.org
44

55
page created by: Philip Mocz (2024)
66

7-
Uses https://github.com/thieryw/gitlanding React components
7+
## Repository structure
88

9-
Starts from demo project files: https://github.com/garronej/gitlanding-demo
9+
- The `main` branch contains the website source code
10+
- The `gh-pages` branch stores the built website
1011

11-
## How the website was set up
12+
## Updating the website
1213

13-
```console
14-
yarn create react-app . --template gitlanding
14+
Check out the repo, make changes to the source code, commit to repo, and, to publish the page, run:
1515

16-
git add -A
17-
git commit -m "Initial commit"
18-
git push
16+
```console
17+
npm run deploy
1918
```
2019

21-
Fix React Router issue to be compatible with GitHub pages:
22-
https://stackoverflow.com/questions/71984401/react-router-not-working-with-github-pages
20+
## How the website was set up
21+
22+
Uses https://github.com/thieryw/gitlanding (v2) React components
2323

24+
Starts from demo template: https://github.com/garronej/gitlanding-demo
2425

25-
Follow guide from https://github.com/gitname/react-gh-pages
26+
Follows guide on publishing React web apps to GitHub Pages from https://github.com/gitname/react-gh-pages
2627

27-
Add a `homepage` property to the `package.json` file
28+
- add a `homepage` property to the `package.json` file
2829

29-
In `package.json`
30-
Add a `predeploy` property and a `deploy` property to the scripts object:
30+
- also add a `predeploy` property and a `deploy` property to the `scripts` object:
3131

3232
```json
3333
"scripts": {
3434
"predeploy": "npm run build",
3535
"deploy": "gh-pages -d build",
3636
```
37-
38-
Push the React app to the GitHub repository
39-
40-
```console
41-
npm run deploy
42-
```

README_React.md

-46
This file was deleted.

eslint.config.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
"@typescript-eslint/no-unused-vars": "off"
27+
},
28+
},
29+
)

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>MESA Landing Page</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)