Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/custom-pages-example/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_STACK_URL=# enter your stack endpoint here, e.g. http://localhost:8101
NEXT_PUBLIC_STACK_PROJECT_ID=# enter your stack project id here
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=# enter your stack publishable client key here
STACK_SECRET_SERVER_KEY=# enter your stack secret server key here
21 changes: 21 additions & 0 deletions apps/custom-pages-example/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
extends: ["../../eslint-configs/defaults.js", "../../eslint-configs/next.js"],
ignorePatterns: ["/*", "!/src"],
rules: {
"@typescript-eslint/no-misused-promises": [0],
"@typescript-eslint/no-floating-promises": [0],
"import/order": [
1,
{
groups: [
"external",
"builtin",
"internal",
"sibling",
"parent",
"index",
],
},
],
},
};
7 changes: 7 additions & 0 deletions apps/custom-pages-example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
dbschema/edgeql-js

*.tsbuildinfo
250 changes: 250 additions & 0 deletions apps/custom-pages-example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
# demo-app

## 1.1.6

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.4.4
- @stackframe/stack@2.4.6

## 1.1.5

### Patch Changes

- CRUD schemas
- Updated dependencies
- @stackframe/stack-shared@2.4.3
- @stackframe/stack@2.4.5

## 1.1.4

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.4.4

## 1.1.3

### Patch Changes

- New projects page
- Updated dependencies
- @stackframe/stack-shared@2.4.2
- @stackframe/stack@2.4.3

## 1.1.2

### Patch Changes

- @stackframe package namespace
- Updated dependencies
- @stackframe/stack@2.4.2

## 1.1.1

### Patch Changes

- Teams, permissions and RBAC
- Updated dependencies
- @stackframe/stack-shared@2.4.1
- @stackframe/stack@2.4.1

## 1.1.0

### Minor Changes

- Middleware support

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.4.0
- @stackframe/stack@2.4.0

## 1.0.24

### Patch Changes

- Bugfixes
- Updated dependencies
- @stackframe/stack-shared@2.3.6
- @stackframe/stack@2.3.8

## 1.0.23

### Patch Changes

- CommonJS support
- Updated dependencies
- @stackframe/stack-shared@2.3.5
- @stackframe/stack@2.3.7

## 1.0.22

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.3.4
- @stackframe/stack@2.3.6

## 1.0.21

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.3.3
- @stackframe/stack@2.3.5

## 1.0.20

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.3.4

## 1.0.19

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.3.2
- @stackframe/stack@2.3.3

## 1.0.18

### Patch Changes

- Updated dependencies
- @stackframe/stack-shared@2.3.1
- @stackframe/stack@2.3.2

## 1.0.17

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.3.1

## 1.0.16

### Patch Changes

- Various small improvements
- Updated dependencies
- Updated dependencies [96c26a7]
- @stackframe/stack-shared@2.3.0
- @stackframe/stack@2.3.0

## 1.0.15

### Patch Changes

- Updated dependencies [5909ecd]
- @stackframe/stack@2.2.5
- @stackframe/stack-shared@2.2.2

## 1.0.14

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.2.4
- @stackframe/stack-shared@2.2.1

## 1.0.13

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.2.3

## 1.0.12

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.2.2

## 1.0.11

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.2.1

## 1.0.10

### Patch Changes

- Updated dependencies [2995d96]
- Updated dependencies [2995d96]
- @stackframe/stack@2.2.0
- @stackframe/stack-shared@2.2.0

## 1.0.9

### Patch Changes

- Updated dependencies [4f985be]
- @stackframe/stack@2.1.3

## 1.0.8

### Patch Changes

- Updated dependencies [2eda71b]
- @stackframe/stack@2.1.2

## 1.0.7

### Patch Changes

- Updated dependencies
- @stackframe/stack@2.1.1

## 1.0.6

### Patch Changes

- Updated dependencies [9e9907f]
- @stackframe/stack-shared@2.1.0
- @stackframe/stack@2.1.0

## 1.0.5

### Patch Changes

- Updated dependencies [948252f]
- @stackframe/stack-shared@2.0.0
- @stackframe/stack@2.0.0

## 1.0.4

### Patch Changes

- Updated dependencies
- @stackframe/stack@1.2.1
- @stackframe/stack-shared@1.2.1

## 1.0.3

### Patch Changes

- Updated dependencies
- @stackframe/stack@1.2.0
- @stackframe/stack-shared@1.2.0

## 1.0.2

### Patch Changes

- @stackframe/stack@1.1.1

## 1.0.1

### Patch Changes

- Updated dependencies
- @stackframe/stack@1.1.0
- @stackframe/stack-shared@1.1.0
7 changes: 7 additions & 0 deletions apps/custom-pages-example/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2024 Stackframe

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 5 additions & 0 deletions apps/custom-pages-example/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
10 changes: 10 additions & 0 deletions apps/custom-pages-example/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import("next").NextConfig} */
module.exports = {
webpack(config) {
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
},
compiler: {
styledComponents: true,
},
};
34 changes: 34 additions & 0 deletions apps/custom-pages-example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@stackframe/custom-pages-example",
"version": "1.1.6",
"description": "",
"private": true,
"scripts": {
"typecheck": "tsc --noEmit",
"clean": "rimraf .next && rimraf node_modules",
"dev": "next dev --port 8107",
"build": "next build",
"start": "next start --port 8107",
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/joy": "^5.0.0-beta.30",
"@stackframe/stack": "workspace:*",
"@stackframe/stack-shared": "workspace:*",
"next": "^14.1",
"next-themes": "^0.2.1",
"react": "^18.2",
"react-dom": "^18",
"react-icons": "^5.0.1",
"styled-components": "^6.1.8"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1"
}
}
6 changes: 6 additions & 0 deletions apps/custom-pages-example/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
Binary file added apps/custom-pages-example/src/app/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions apps/custom-pages-example/src/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* @tailwind base;
@tailwind components;
@tailwind utilities;


:root {
--background: white;
--foreground: black;
}

[data-stack-theme='dark'] {
--background: black;
--foreground: white;
}

body {
background-color: var(--background);
color: var(--foreground);
} */
6 changes: 6 additions & 0 deletions apps/custom-pages-example/src/app/handler/[...stack]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { StackHandler } from "@stackframe/stack";
import { stackServerApp } from "src/stack";

export default function Handler(props) {
return <StackHandler app={stackServerApp} {...props} />;
}
Loading