Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Adams authored and Gregor Adams committed Aug 2, 2021
0 parents commit 72796a3
Show file tree
Hide file tree
Showing 105 changed files with 17,199 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: ["next/babel"],
plugins: [
[
"@emotion/babel-plugin",
{
sourceMap: true,
autoLabel: "dev-only",
labelFormat: "[local]",
cssPropOptimization: true,
},
],
],
};
15 changes: 15 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[production]
last 2 android versions
last 2 edge versions
last 2 chrome versions
last 2 firefox versions
last 2 ios versions
last 2 safari version

[modern]
last 1 chrome version
last 1 firefox version


[ssr]
node 16
15 changes: 15 additions & 0 deletions .codegenrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { config } = require("dotenv");
config();

module.exports = {
generates: {
"./src/types/backend-api.ts": {
plugins: ["typescript", "typescript-operations"],
schema: process.env.BACKEND_URI,
},
"./src/types/contentful-api.ts": {
plugins: ["typescript", "typescript-operations"],
schema: `https://graphql.contentful.com/content/v1/spaces/${process.env.NEXT_PUBLIC_CONTENTFUL_SPACE_ID}/environments/${process.env.NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT}?access_token=${process.env.NEXT_PUBLIC_CONTENT_DELIVERY_API_KEY}`,
},
},
};
3 changes: 3 additions & 0 deletions .cypress-cucumber-preprocessorrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
nonGlobalStepDefinitions: true,
};
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
max_line_length = 100
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

# trailing spaces in markdown indicate word wrap
[*.md]
trim_trailing_whitespace = false


[{*.json,*.md,*.yml,.*rc,.*config}]
indent_style = space
indent_size = 2
37 changes: 37 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# BACKEND
NEXT_PUBLIC_BACKEND_URI=http://localhost:1337/graphql
BACKEND_URI=http://localhost:1337/graphql
BACKEND_API_KEY=example

# PRISMA
DATABASE_URL=mysql://root:example@localhost:3306/dekk

# NEXT AUTH
NEXTAUTH_URL=http://localhost:3000
SECRET=
JWT_SIGNING_PRIVATE_KEY=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
EMAIL_SERVER=
EMAIL_FROM=

# CONTENTFUL
NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT=master
NEXT_PUBLIC_CONTENTFUL_SPACE_ID=
NEXT_PUBLIC_CONTENT_PREVIEW_API_KEY=
NEXT_PUBLIC_CONTENT_DELIVERY_API_KEY=

# TEST
CYPRESS_RECORD_KEY=

# SENTRY ( !!! ONLY ENABLE FOR LOCAL TESTING OF SENTRY !!! )
# NEXT_PUBLIC_SENTRY_DSN=
# SENTRY_DSN=
SENTRY_AUTH_TOKEN=
SENTRY_ORG=dekk
SENTRY_PROJECT=dekk-homepage
SENTRY_URL=https://sentry.io/
76 changes: 76 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
20 changes: 20 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

Ensure any install or build dependencies are removed before the end of the layer when doing a build.
Fork the repository and create a new branch (feature/my-feature)
Commit changes following the "conventional-changelog" rules.
Do not modify any versions manually. Don't build new versions.
Use the PULL_REQUEST_TEMPLATE

## Reporting issues

Ensure any install or build dependencies are removed before the end of the layer when doing a build.
Create a new issue (bug/some-bug)
Always list "yarn version", "node version"
Use the ISSUE_TEMPLATE
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Motivation
<!-- List motivation and changes here -->

## Issues closed
<!-- List closed issues here -->
75 changes: 75 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# Dependency directories
node_modules/

# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env
.env.local

# Next.js build output
.next
out
public/sw.js
public/workbox-*.js
public/sw.js.map
public/workbox-*.js.map


# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ
.idea

# Sentry
sentry.properties

# Generated files
.graphqlconfig
.npmrc
contentful.graphql
api.graphql


# Cypress
/cypress/videos
/cypress/screenshots
public/mockServiceWorker.js


# Unignore
!src/atoms/icon

1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"*.{js,ts,tsx,md,json}": ["xo --fix", "prettier --write"],
};
6 changes: 6 additions & 0 deletions .npmrc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
scripts-prepend-node-path=true

@dekk-app:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
always-auth=true

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.17.1
10 changes: 10 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
trailingComma: "es5",
semi: true,
singleQuote: false,
quoteProps: "as-needed",
jsxSingleQuote: false,
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "avoid",
};
26 changes: 26 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier",
"stylelint-config-styled-components",
"stylelint-config-property-sort-order-smacss"
],
"plugins": ["stylelint-order", "stylelint-a11y"],
"processors": ["stylelint-processor-styled-components"],
"rules": {
"order/order": ["custom-properties", "declarations"],
"selector-type-case": [
"lower",
{
"ignoreTypes": ["/^\\$\\w+/"]
}
],
"value-keyword-case": ["lower", { "ignoreKeywords": ["dummyValue"] }],
"selector-type-no-unknown": [
true,
{
"ignoreTypes": ["/^\\$\\w+/"]
}
]
}
}
8 changes: 8 additions & 0 deletions .unimportedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"entry": ["src/pages/**"],
"extensions": [".ts", ".tsx"],
"ignorePatterns": ["**/node_modules/**"],
"ignoreUnresolved": ["type-fest"],
"ignoreUnimported": [],
"ignoreUnused": ["tslib", "@emotion/core", "@apollo/react-hooks"]
}
Loading

1 comment on commit 72796a3

@vercel
Copy link

@vercel vercel bot commented on 72796a3 Aug 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.