Skip to content

Commit 042a87c

Browse files
committed
init project
1 parent 29e588a commit 042a87c

34 files changed

+11200
-404
lines changed

.gitignore

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
/node_modules
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+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"git.ignoreLimitWarning": true
45
}

LICENSE

Lines changed: 674 additions & 394 deletions
Large diffs are not rendered by default.

_config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

config-overrides.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const webpack = require('webpack');
2+
const path = require('path');
3+
4+
module.exports = function override(config) {
5+
const fallback = config.resolve.fallback || {};
6+
Object.assign(fallback, {
7+
crypto: require.resolve('crypto-browserify'),
8+
stream: require.resolve('stream-browserify'),
9+
assert: require.resolve('assert'),
10+
http: require.resolve('stream-http'),
11+
https: require.resolve('https-browserify'),
12+
os: require.resolve('os-browserify'),
13+
url: require.resolve('url'),
14+
path: require.resolve('path-browserify'),
15+
});
16+
config.resolve.fallback = fallback;
17+
config.plugins = (config.plugins || []).concat([
18+
new webpack.ProvidePlugin({
19+
process: 'process/browser',
20+
Buffer: ['buffer', 'Buffer'],
21+
}),
22+
]);
23+
24+
config.resolve.alias = {
25+
//https://github.com/facebook/create-react-app/issues/5118
26+
'#': path.resolve(__dirname, 'src'),
27+
};
28+
return config;
29+
};

package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "archlinuxstudio.github.io",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^5.16.2",
7+
"@testing-library/react": "^12.1.3",
8+
"@testing-library/user-event": "^13.5.0",
9+
"@types/jest": "^27.4.1",
10+
"@types/node": "^16.11.26",
11+
"@types/react": "^17.0.39",
12+
"@types/react-dom": "^17.0.12",
13+
"react": "^17.0.2",
14+
"react-dom": "^17.0.2",
15+
"react-scripts": "5.0.0",
16+
"typescript": "^4.6.2",
17+
"web-vitals": "^2.1.4"
18+
},
19+
"devDependencies": {
20+
"semantic-ui-css": "^2.4.1",
21+
"semantic-ui-react": "^2.1.2",
22+
"@artsy/fresnel": "^3.4.0",
23+
"@semantic-ui-react/css-patch": "^1.0.0",
24+
"@semantic-ui-react/component-visibility": "^1.0.0",
25+
"assert": "^2.0.0",
26+
"buffer": "^6.0.3",
27+
"crypto-browserify": "^3.12.0",
28+
"https-browserify": "^1.0.0",
29+
"os-browserify": "^0.3.0",
30+
"path-browserify": "^1.0.1",
31+
"process": "^0.11.10",
32+
"react-app-rewired": "^2.2.1",
33+
"stream-browserify": "^3.0.0",
34+
"stream-http": "^3.2.0",
35+
"url": "^0.11.0"
36+
},
37+
"scripts": {
38+
"start": "react-app-rewired start",
39+
"build": "react-app-rewired build",
40+
"test": "react-app-rewired test",
41+
"eject": "react-app-rewired eject",
42+
"postinstall": "semantic-ui-css-patch"
43+
},
44+
"eslintConfig": {
45+
"extends": [
46+
"react-app",
47+
"react-app/jest"
48+
]
49+
},
50+
"browserslist": {
51+
"production": [
52+
">0.2%",
53+
"not dead",
54+
"not op_mini all"
55+
],
56+
"development": [
57+
"last 1 chrome version",
58+
"last 1 firefox version",
59+
"last 1 safari version"
60+
]
61+
}
62+
}

path.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"#/*": ["src/*"]
6+
}
7+
}
8+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>ArchLinuxStudio</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

public/manifest.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "ArchLinuxStudio",
3+
"name": "ArchLinuxStudio Site",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.App {
2+
text-align: center;
3+
}
4+
5+
.App-logo {
6+
height: 40vmin;
7+
pointer-events: none;
8+
}
9+
10+
@media (prefers-reduced-motion: no-preference) {
11+
.App-logo {
12+
animation: App-logo-spin infinite 20s linear;
13+
}
14+
}
15+
16+
.App-header {
17+
background-color: #282c34;
18+
min-height: 100vh;
19+
display: flex;
20+
flex-direction: column;
21+
align-items: center;
22+
justify-content: center;
23+
font-size: calc(10px + 2vmin);
24+
color: white;
25+
}
26+
27+
.App-link {
28+
color: #61dafb;
29+
}
30+
31+
@keyframes App-logo-spin {
32+
from {
33+
transform: rotate(0deg);
34+
}
35+
to {
36+
transform: rotate(360deg);
37+
}
38+
}

src/App.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import { render, screen } from '@testing-library/react';
3+
import App from './App';
4+
5+
test('renders learn react link', () => {
6+
render(<App />);
7+
const linkElement = screen.getByText(/learn react/i);
8+
expect(linkElement).toBeInTheDocument();
9+
});

0 commit comments

Comments
 (0)