Skip to content

Commit 5c6c405

Browse files
feat: første commit
0 parents  commit 5c6c405

File tree

178 files changed

+23376
-0
lines changed

Some content is hidden

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

178 files changed

+23376
-0
lines changed

.babelrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"@babel/plugin-syntax-object-rest-spread",
8+
"@babel/plugin-proposal-object-rest-spread"
9+
]
10+
}

.dependabot/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 1
2+
3+
update_configs:
4+
- package_manager: javascript
5+
directory: /
6+
update_schedule: live
7+
allowed_updates:
8+
- match:
9+
update_type: security
10+
automerged_updates:
11+
- match:
12+
dependency_type: all
13+
update_type: in_range
14+
version_requirement_updates: widen_ranges

.editorconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true

.eslintrc.yml

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
env:
2+
browser: true
3+
4+
parser: "@babel/eslint-parser"
5+
6+
parserOptions:
7+
ecmaVersion: 6
8+
9+
plugins: [ "import" ]
10+
11+
extends: [
12+
"plugin:react/recommended",
13+
"plugin:cypress/recommended"
14+
]
15+
16+
settings:
17+
react:
18+
version: detect
19+
20+
rules:
21+
# Possible Errors
22+
# https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
23+
no-control-regex: 2
24+
no-console: 1
25+
no-debugger: 2
26+
no-dupe-args: 2
27+
no-dupe-keys: 2
28+
no-duplicate-case: 2
29+
no-empty-character-class: 2
30+
no-ex-assign: 2
31+
no-extra-boolean-cast : 2
32+
no-extra-semi: 2
33+
no-invalid-regexp: 2
34+
no-irregular-whitespace: 1
35+
no-proto: 2
36+
no-unexpected-multiline: 2
37+
no-unreachable: 2
38+
valid-typeof: 2
39+
40+
# Best Practices
41+
# https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
42+
no-fallthrough: 2
43+
no-redeclare: 2
44+
45+
# Stylistic Issues
46+
# https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
47+
comma-spacing: 2
48+
eol-last: 2
49+
eqeqeq: ["error", "smart"]
50+
indent: [2, 2, {SwitchCase: 1}]
51+
keyword-spacing: 2
52+
max-len: [1, 160, 2]
53+
new-parens: 2
54+
no-mixed-spaces-and-tabs: 2
55+
no-multiple-empty-lines: [2, {max: 2}]
56+
no-trailing-spaces: 2
57+
object-curly-spacing: [2, "never"]
58+
quotes: [2, "double", "avoid-escape"]
59+
semi: 2
60+
space-before-blocks: [2, "always"]
61+
space-before-function-paren: [2, "never"]
62+
space-in-parens: [2, "never"]
63+
space-infix-ops: 2
64+
space-unary-ops: 2
65+
66+
# ECMAScript 6
67+
# http://eslint.org/docs/rules/#ecmascript-6
68+
arrow-parens: [2, "always"]
69+
arrow-spacing: [2, {"before": true, "after": true}]
70+
no-confusing-arrow: 2
71+
prefer-const: 2
72+
73+
# JSX
74+
jsx-quotes: [2, "prefer-double"]
75+
76+
# Import
77+
import/no-unresolved: [1, {"commonjs": true, "amd": true}]
78+
import/export: 2
79+
80+
# Strict Mode
81+
# https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
82+
strict: [2, "global"]
83+
84+
# Variables
85+
# https://github.com/eslint/eslint/tree/master/docs/rules#variables
86+
no-undef: 2
87+
no-unused-vars: [2, {"args": "none"}]
88+
89+
# turn off PropType checking
90+
# https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prop-types.md
91+
react/prop-types: [0]
92+
93+
# Global scoped method and vars
94+
globals:
95+
__dirname: true
96+
require: true
97+
process: true
98+
ENV: true
99+
module: true

.github/ISSUE_TEMPLATE.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--
2+
If you are reporting a new issue, make sure that we do not have any duplicates
3+
already open. You can ensure this by searching the issue list for this
4+
repository. If there is a duplicate, please close your issue and add a comment
5+
to the existing issue instead.
6+
7+
If you suspect your issue is a bug, please edit your issue description to
8+
include the BUG REPORT INFORMATION shown below. If you fail to provide this
9+
information within 7 days, we cannot debug your issue and will close it. We
10+
will, however, reopen it if you later provide the information.
11+
12+
---------------------------------------------------
13+
BUG REPORT INFORMATION
14+
---------------------------------------------------
15+
Use the commands below to provide key information from your environment:
16+
You do NOT have to include this information if this is a FEATURE REQUEST
17+
-->
18+
19+
**- Do you want to request a *feature* or report a *bug*?**
20+
21+
**- What is the current behavior?**
22+
23+
**- If the current behavior is a bug, please provide the steps to reproduce.**
24+
25+
**- What is the expected behavior?**
26+
27+
**- Please mention your node.js, NPM, and operating system version.**

.github/PULL_REQUEST_TEMPLATE.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!--
2+
Thanks for submitting a pull request!
3+
4+
Please make sure you've read and understood our contributing guidelines;
5+
https://github.com/decaporg/one-click-hugo-cms/blob/main/CONTRIBUTING.md
6+
7+
If this is a bug fix, make sure your description includes "fixes #xxxx", or
8+
"closes #xxxx", where #xxxx is the issue number.
9+
10+
Please provide enough information so that others can review your pull request.
11+
The first three fields are mandatory:
12+
-->
13+
14+
**- Summary**
15+
16+
<!--
17+
Explain the **motivation** for making this change.
18+
What existing problem does the pull request solve?
19+
-->
20+
21+
**- Test plan**
22+
23+
<!--
24+
Demonstrate the code is solid.
25+
Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
26+
-->
27+
28+
**- Description for the changelog**
29+
30+
<!--
31+
Write a short (one line) summary that describes the changes in this
32+
pull request for inclusion in the changelog:
33+
-->
34+
35+
**- A picture of a cute animal (not mandatory but encouraged)**

.github/workflows/deploy.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: 'pages'
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true # Fetch Hugo themes (true OR recursive)
25+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 21
31+
cache: 'yarn'
32+
33+
- name: Install dependencies
34+
run: yarn --immutable
35+
36+
- name: Setup Pages
37+
id: pages
38+
uses: actions/configure-pages@v4
39+
40+
- name: Build
41+
run: yarn build
42+
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: dist
47+
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
7+
8+
# Swap the comments on the following lines if you wish to use zero-installs
9+
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
10+
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
11+
12+
#!.yarn/cache
13+
.pnp.*
14+
15+
node_modules/
16+
dist/
17+
site/data/webpack.json
18+
/npm-debug.log
19+
yarn-error.log
20+
.netlify/
21+
.hugo_build.lock
22+
23+
cypress/videos
24+
cypress/screenshots

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"arcanis.vscode-zipfs",
4+
"dbaeumer.vscode-eslint"
5+
]
6+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"search.exclude": {
3+
"**/.yarn": true,
4+
"**/.pnp.*": true
5+
},
6+
"eslint.nodePath": ".yarn/sdks"
7+
}

0 commit comments

Comments
 (0)