-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from dragonrealms-phoenix/nextjs
Refactored from vite to nextjs
- Loading branch information
Showing
74 changed files
with
3,273 additions
and
1,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
# ========================================================== | ||
# BUILD TIME ENV VARIABLES | ||
# ========================================================== | ||
# To allow Sentry to upload events from renderer process. | ||
# Our Content-Security Policy allow lists this domain. | ||
# Infer this from the SENTRY_DSN. | ||
SENTRY_INGEST_DOMAIN="https://456.ingest.sentry.io" | ||
|
||
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin. | ||
# It's used for authentication when uploading source maps. | ||
# Sentry auth token for uploading sourcemaps. | ||
SENTRY_AUTH_TOKEN="sntrys_xxx" | ||
|
||
# ========================================================== | ||
# MAIN PROCESS RUNTIME ENV VARIABLES | ||
# ========================================================== | ||
MAIN_VITE_SENTRY_DSN="https://xxx@yyy.ingest.sentry.io/zzz" | ||
MAIN_VITE_SENTRY_CRASH_REPORT_DSN="https://xxx.ingest.sentry.io/api/yyy/minidump/?sentry_key=zzz" | ||
# Sentry DSN for posting events. | ||
SENTRY_DSN="https://123@456.ingest.sentry.io/xxx" | ||
|
||
# ========================================================== | ||
# RENDERER PROCESS RUNTIME ENV VARIABLES | ||
# ========================================================== | ||
RENDERER_VITE_SENTRY_DSN="https://xxx@yyy.ingest.sentry.io/zzz" | ||
RENDERER_VITE_SENTRY_CRASH_REPORT_DSN="https://xxx.ingest.sentry.io/api/yyy/minidump/?sentry_key=zzz" | ||
# Sentry organization and project for tagging events. | ||
# The Sentry organization is the same as the GitHub organization. | ||
# The Sentry project is the same as the GitHub repository. | ||
SENTRY_ORG="dragonrealms-phoenix" | ||
SENTRY_PROJECT="phoenix" | ||
|
||
# https://docs.sentry.io/platforms/javascript/guides/electron/configuration/tree-shaking/ | ||
__SENTRY_DEBUG__=false | ||
__SENTRY_TRACING__=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
node_modules | ||
out | ||
dist | ||
coverage | ||
.gitignore | ||
# See https://eslint.org/docs/latest/use/configure/ignore for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/electron/build | ||
/electron/renderer/.next | ||
/electron/renderer/public/themes | ||
|
||
# production | ||
/build | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# typescript | ||
*.tsbuildinfo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Use Snyk to find and fix vulnerabilities in your GitHub repository. | ||
# https://github.com/snyk/actions/ | ||
|
||
name: Snyk Security | ||
|
||
on: | ||
# Allow developers to run this on-demand. | ||
workflow_dispatch: | ||
# Scan every Sunday at 1am | ||
schedule: | ||
- cron: '0 1 * * SUN' | ||
# Scan every push to main branch | ||
push: | ||
branches: | ||
- main | ||
# Scan every pull request to main branch | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
snyk: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Setup Snyk | ||
uses: snyk/actions/setup@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Snyk Code Scan | ||
run: snyk code test --sarif > snyk-code.sarif | ||
continue-on-error: true # so that the SARIF upload gets called | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Snyk Open Source Monitor | ||
run: snyk monitor --all-projects | ||
continue-on-error: true # so that the SARIF upload gets called | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Upload results to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk-code.sarif | ||
category: Snyk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.