Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: nextjs migration #271

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c1aed70
wip: nextjs migration
esemyonov Nov 28, 2023
d84050b
wip: nextjs migration
esemyonov Nov 28, 2023
fb360d8
wip: nextjs migration
esemyonov Nov 28, 2023
f97b9ee
wip: nextjs migration
esemyonov Nov 28, 2023
ab7b89d
wip: nextjs migration
esemyonov Nov 28, 2023
84cff12
wip: nextjs migration
esemyonov Nov 29, 2023
c6a5c2b
wip: nextjs migration
esemyonov Nov 29, 2023
40ffa04
wip: nextjs migration
esemyonov Nov 29, 2023
b1f9a2c
feat: header template (#272)
esemyonov Dec 4, 2023
43a02a6
feat: convert to nextjs mobile header (#273)
esemyonov Dec 4, 2023
c018dba
fix: mobile header (#275)
esemyonov Dec 6, 2023
7c128c0
feat: update policies page template (#276)
VladimirGlinskii Dec 6, 2023
7f9055f
feat: layout template (#277)
esemyonov Dec 8, 2023
347aea9
Convert Docs to NextJS (#279)
esemyonov Dec 8, 2023
92be783
feat: mobile layout (#280)
esemyonov Dec 11, 2023
71c9596
Handlers page (#281)
esemyonov Dec 11, 2023
5b2758c
Refactoring (#282)
esemyonov Dec 13, 2023
df618fe
Refactoring (#284)
esemyonov Dec 15, 2023
b5a530c
Refactor navigation (#285)
esemyonov Dec 18, 2023
c4cd9df
fix: update package.json scripts (#286)
esemyonov Dec 18, 2023
f4629bc
refactor: prose component (#289)
esemyonov Dec 18, 2023
aa62a2f
Fix: prev/next pages (#290)
esemyonov Dec 18, 2023
a07d09e
fix: node-modules page (#293)
esemyonov Dec 19, 2023
44f9d52
test: implement readability tests (#294)
VladimirGlinskii Dec 22, 2023
bd73585
feat: use lucide icons (#297)
VladimirGlinskii Dec 22, 2023
622b421
fix: react components are not rendered in mdx (#298)
esemyonov Dec 27, 2023
e2188b3
feat(template): white background (#299)
esemyonov Dec 29, 2023
21c5861
Upates poilicies script (#300)
esemyonov Dec 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions .devcontainer/Dockerfile

This file was deleted.

55 changes: 0 additions & 55 deletions .devcontainer/base.Dockerfile

This file was deleted.

34 changes: 0 additions & 34 deletions .devcontainer/devcontainer.json

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
52 changes: 52 additions & 0 deletions .github/workflows/checkly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Checkly E2E"
on: [deployment_status]

# Set the necessary credentials and export variables we can use to instrument our test run. Use the ENVIRONMENT_URL
# to run your checks against staging, preview or production.
env:
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
CHECKLY_ACCOUNT_ID: ${{ vars.CHECKLY_ACCOUNT_ID }}
ENVIRONMENT_URL: ${{ github.event.deployment_status.environment_url }}
CHECKLY_TEST_ENVIRONMENT: ${{ github.event.deployment_status.environment }}
jobs:
test-e2e:
if: github.event.deployment_status.state == 'success' # Only run when the deployment was successful.
name: Test E2E on Checkly
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.event.deployment_status.deployment.ref }}"
fetch-depth: 0
- name: Set branch name # workaround to detect branch name in "deployment_status" actions
run:
echo "CHECKLY_TEST_REPO_BRANCH=$(git show -s --pretty=%D HEAD | tr -s
',' '\n' | sed 's/^ //' | grep -e 'origin/' | head -1 | sed
's/\origin\///g')" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Restore or cache node_modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
env:
GITHUB_NPM_TOKEN: ${{ secrets.GH_NPM_PACKAGE_READ_TOKEN }}
- name: Run checks # run the checks passing in the ENVIRONMENT_URL and recording a test session.
id: run-checks
run: npx checkly test -e ENVIRONMENT_URL=${{ env.ENVIRONMENT_URL }}
--reporter=github --record
- name: Create summary # export the markdown report to the job summary.
id: create-summary
run: cat checkly-github-report.md > $GITHUB_STEP_SUMMARY
- name: Deploy checks # if the test run was successful and we are on Production, deploy the checks
id: deploy-checks
if: steps.run-checks.outcome == 'success' &&
github.event.deployment_status.environment == 'Production'
run: npx checkly deploy --force
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name: "CodeQL"

on:
push:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/search.yaml

This file was deleted.

47 changes: 32 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,49 @@
# Dependencies
# dependencies
/node_modules
/.pnp
.pnp.js

# Production
/build
# testing
/coverage

# next.js
/.next/
/out/

# Generated files
.docusaurus
.cache-loader
# production
/build

# Misc
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env*.local

/docs/policies/
src/components/bundles.json
# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


# Custom
/docs/policies/
src/components/bundles.json
/policies.*.json
scripts/update-policies.mjs.map
/temp
scripts/update-policies.mjs
/bundles.json
src/shiki

yarn.lock
.vercel
public/robots.txt
public/sitemap.xml
public/sitemap-0.xml
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.md",
Expand Down
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/*.code-search": true,
"**/.next": true
},
"[markdown]": {
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 80
},
"cSpell.words": ["Amberflo", "asns", "Moesif", "overridable", "Supabase"]
"cSpell.words": ["Amberflo", "asns", "Moesif", "overridable", "Supabase"],
"typescript.preferences.importModuleSpecifier": "non-relative"
}
Loading