Commit Graph

1761 Commits

Author SHA1 Message Date
Stan Wohlwend
07d1169e84 chore: update package versions 2024-06-09 17:25:59 +02:00
Zai Shi
617ccbed6f
Oauth scope (#67)
* removed openid for oauth providers, switch to pure oauth flow

* restructured files

* added project id to the env keys

* fixed tooltip display bug

* improved docs links

* removed old comments

* improved oauth code structure

* removed MS tenantID

* added linking account

* added access token endpoint

* fixed prisma schema

* added store refresh token

* fixed no refresh token error

* added authorize and link types to authorize endpoint

* added adding scope

* improved oauth provider code structure

* added additional scopes to db

* fixed sessions

* fixed oauth provider select bug

* added scopes to dashboard

* added get account

* added useAccount

* added useAccessToken

* fixed type errors

* fixed bug

* added oauth link failed page

* added error page

* fixed bugs

* updated error page

* added extra scope error

* fixed additional scope

* removed test code, fixed bug

* Throw error when accessing OAuth access token with shared OAuth keys

* removed additional scopes

* added scopes on sign in

* renamed errors

* added redirect URL for the oauth provider setting

* dynamic link

* added connect wrong account error

* added migration file, fixed useConnection bug

* added after callback redirect url

* fixed types

* fixed type error

* updated migration file
2024-06-08 16:26:50 +02:00
Stan Wohlwend
e4bf35ecd9 chore: update package versions 2024-06-08 16:06:11 +02:00
Stan Wohlwend
12ad506699 chore: update package versions 2024-06-08 15:28:10 +02:00
Stan Wohlwend
5f5b6d65b5 chore: update package versions 2024-06-07 13:32:12 +02:00
Stan Wohlwend
c16c13d2b6 chore: update package versions 2024-06-07 12:41:23 +02:00
Stan Wohlwend
7938ff6439 Whitespace ESLint rules 2024-06-07 11:55:46 +02:00
Stan Wohlwend
ca7da8dff7 Fix lint errors 2024-06-06 19:23:20 +02:00
Stan Wohlwend
dafe0dc1fb Fix lint errors 2024-06-06 13:35:29 +02:00
Stan Wohlwend
30b9b07dfe chore: update package versions 2024-06-03 14:33:33 +02:00
Stan Wohlwend
14c9a202b8 Improve developer setup 2024-06-03 01:36:17 +02:00
Stan Wohlwend
893a93da1e Add rimraf as dependency everywhere 2024-06-02 18:31:12 +02:00
Stan Wohlwend
4b4357ea46 chore: update package versions 2024-06-02 15:22:04 +02:00
Stan Wohlwend
9423a2dc1a Make fullPage actually fill the whole page
Fixes #52
2024-05-30 15:47:14 +02:00
Zai Shi
586ee79664 chore: update package versions 2024-05-29 14:40:38 +02:00
Zai Shi
9b77b77c05 Improved create new project screen with browser frame 2024-05-28 20:19:53 +02:00
Zai Shi
e98d730108 chore: update package versions 2024-05-28 12:07:22 +02:00
Konsti Wohlwend
4415012f8c
Email template editor (#54)
* added email editor

* added theme

* improved styling

* removed unused

* added toolbar toggle

* fixed layout problems

* removed sample drawer

* added original license

* added template var matching

* renamed files

* added variable panel

* changed boxes to tailwind DIVs

* added save button

* added custom text-block

* removed avatar, change tab switching logic

* removed html component for now

* renamed folder

* moved download import to setting panel

* added prisma schema for email templates

* added mustache

* added cancel button

* added email templates crud

* removed email template id

* updated email template list page

* removed unused imports

* removed createEmailTemplate handler

* added reset button to email template

* added default templates structure

* added template default value

* moved email template location

* added template information

* added email template routes

* fixed types, added error page

* improved styles

* updated sidebar links

* added save and cancel functions

* wrapped router and link for leave confirmation

* changed disabled => needConfirm

* fixed link

* fixed styles

* fixed link

* fixed bugs

* fixed template editing bugs

* added reset confirmation

* fixed save button

* fixed type error, moved email util file

* moved constant, added prefetch to link

* restructured code

* added variable system

* added email verification default

* removed preview

* added templates for all emails, removed unused

* fixed import error

* migrate part of mui to shadcn

* migrated more to shadcn

* migrated more mui

* updated color picker

* migrate more to shadcn

* added shadcn toggle group

* removed editor provider

* updated slider

* migrated toggle group to shadcn

* moved block icons to lucide

* removed radio group

* fixed color picker

* migrated icons to shadcn

* change popup buttons to shadcn

* fixed create block button display bug

* changed import json to shadcn

* migrated block menu

* removed mui dependency

* render merged preview

* refactor: Replace deleteEmailTemplate with resetEmailTemplate for consistency

* chore: renamed delete email template and removed unused imports

* fixed add block button style

* changed button default style

* added subject

* added subject preview

* moved document-core into the repo

* moved all email components into the repo

* removed context in reader block

* restructured files

* moved components to react-email

* removed unused

* fixed magic link template

* fixed templates

* Mustache -> Handlebars, disabled escape

* fixed editor scrolling

* moved delete button location to inside the box

* fixed template rendering error, updated templates

* updated button text in email templates

* generated migration file

* fixed small bugs

* fixed handle bar import path

* removed all the double ;;

* fixed lint

* fixed inert with type extension

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-05-28 11:49:59 +02:00
Zai Shi
8160521a95 chore: update package versions 2024-05-25 19:11:29 +02:00
Stan Wohlwend
8aa2021f92 chore: update package versions 2024-05-25 16:10:26 +02:00
Stan Wohlwend
ed2ac2f5bd chore: update package versions 2024-05-23 18:22:05 +02:00
Stan Wohlwend
1a2b504d71 chore: update package versions 2024-05-23 18:05:03 +02:00
Stan Wohlwend
0b941799f8 chore: update package versions 2024-05-23 15:39:34 +02:00
Stan Wohlwend
52ad3c8ccf chore: update package versions 2024-05-21 12:27:06 +02:00
Stan Wohlwend
9c0e56520f chore: update package versions 2024-05-21 11:28:07 +02:00
Zai Shi
c5ec7633e7
Updated docs, added why stack, completed custom sign-in/sign-up examples (#40)
* fixed color theme

* put two setup methods into tabs

* added why stack

* re-ordered files

* updated why stack

* added custom user information section

* updated signup docs

* added example custom pages

* updated sign up docs

* updated custom magic link docs

* added redirect comments

* updated doc links

* fixed lint

* fixed loading indicator types
2024-05-20 09:56:02 +02:00
Stan Wohlwend
21bc179347 Remove unnecessary log statement 2024-05-18 17:51:45 +02:00
Stan Wohlwend
ca5dab17fa chore: update package versions 2024-05-16 22:26:39 +02:00
Konsti Wohlwend
a0dc6f6782
Prisma route handlers (#34) 2024-05-14 15:31:13 +02:00
Stan Wohlwend
7742a1d81a chore: update package versions 2024-05-14 13:59:10 +02:00
Stan Wohlwend
dec622ed9e
CRUD schemas (#28) 2024-05-12 20:29:14 +02:00
Stan Wohlwend
03cc40bcfb chore: update package versions 2024-05-12 15:22:38 +02:00
Stan Wohlwend
ff6e4540b4 chore: update package versions 2024-05-11 16:51:06 +02:00
Zai Shi
507b97f427
Migration to Shadcn UI (#31)
* fixed theme doesn't work when not signed in

* added tailwind

* use stack theme instead of stack joy theme for server

* added shadcn

* added shadcn components

* added new project page

* improved styling

* added footer

* added footer

* added new project page

* added project creation page

* made new project page interactive

* added project settings on create project endpoint

* added async button

* fixed small things

* data-theme -> data-stack-theme

* changed color scheme

* changed joy buttons to shadcn buttons

* fixed lint

* added redirect to create project page
2024-05-10 23:34:42 +02:00
Stan Wohlwend
dba19eb167 chore: update package versions 2024-05-10 17:11:53 +02:00
Stan Wohlwend
dd2df94f1f Prepend @stackframe/ to all package names 2024-05-09 16:17:49 +02:00
Stan Wohlwend
4f439bf1eb chore: update package versions 2024-05-09 16:12:41 +02:00
Stan Wohlwend
b2275484a7 Disable caching on requests 2024-05-09 16:00:12 +02:00
Stan Wohlwend
89fc11d3a2 Disable fetch caching for client requests 2024-05-09 11:21:14 +02:00
Stan Wohlwend
9ff2cff5c5
Organizations & RBAC (#22)
* added organizations route

* added orgganizations/[orgId] and orgganizations/[orgId]/users routes

* added more routes

* restructured dashboard pages, added organization page

* fixed redirect bug

* updated sidebar

* added mock orgnizations

* fixed breadcrumbs

* added edit org modal

* added memeber table

* added permission table

* Orgs & perms backend

* Fix build errors

* updated permission ui

* org -> team for frontend

* added enable team UI

* Stack App for teams

* formatted schema

* renamed all orgs to teams

* fixed docusaurus bug

* disabled docusaurus build progress bar

* added member profile and direct permission to profile

* removed dead code, memberProfile -> member

* removed teams attribute from the user object

* added /teams endpoint

* added create team endpoint

* added add-user endpoint

* moved add-user

* added server side get teams

* updated schema formatting

* added team enabled endpoints

* fixed type error

* moved get current teams to current-user/teams

* improved interface

* added create team

* hooked up team to frontend

* added hooked up team name with team member page

* added list team users

* added useUsers to team object

* fixed list team user bug

* added team update

* added list permissions and use permission on app

* added create permission

* list permission

* added permission list

* added inherited permission list

* add edit permission model

* restructured permission graph

* updated style

* added delete permission

* fixed delete permission bug

* added inheritence update

* fixed await bug

* fixed selection bug

* added permission update

* fixed update bug

* fixed team update refresh

* added remove user from team

* restructured permission and permission definition

* updated permission definition structure

* updated list permissions and grant permissions

* fixed list user permissions

* added grant permission

* fixed list permission

* added direct option to list team use permission

* fixed bugs

* fixed bugs

* added revoke permission

* inherited from -> contains

* added client list permission

* restructured stack-app teams and permissions

* fixed server teams and permissions

* fixed bug

* fixed bugs

* added teams pages to demo

* added styled component compiler

* added list teams

* added join and leave teams

* fixed prisma onDelete

* fixed type bugs

* removed on permission change for now

* added member

* fixed user and server user

* fixed imports

* added create team

* added more content to demo

* fixed recursion bug

* fixed recursion stack out of bound bug

* removed teamsEnabled

* added create team on sign-up options

* added create team on signup

* queriable -> queryable, fixed migration file

* fixed migration file

* fixed demo build error

* fixed license accidental change

* fixed tab styling

* added required to create permission id

* added more ui error hints

* fixed seed wrong setting

* default team name

* improved permission list ui

* improved demo display

* Update README.md

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
2024-05-08 12:43:56 +02:00
Stan Wohlwend
1c58b49e8f chore: update package versions 2024-05-05 18:17:17 +02:00
Stan Wohlwend
74f3fe2e49
Middleware support (#29) 2024-05-05 17:33:36 +02:00
Stan Wohlwend
dc6659131c
Auth for smartRouteHandler (#27) 2024-05-05 10:28:31 +02:00
Stan Wohlwend
c4fa6d93e7 chore: update package versions 2024-05-05 09:37:32 +02:00
Stan Wohlwend
5b3f46faf6 Update license files 2024-05-04 15:52:49 +02:00
Stan Wohlwend
406ad69ebb
Docker compose dependencies (#20) 2024-05-04 15:42:41 +02:00
Stan Wohlwend
0eb7822569 chore: update package versions 2024-05-03 12:59:16 +02:00
Stan Wohlwend
80b743d146
CommonJS support (#25) 2024-05-03 12:37:14 +02:00
Zai Shi
8a0095f0b1
Fixed color mode and flashes (#24)
* fixed button

* removed link variant

* fixed input

* fixed label

* fixed separator

* fixed indicator

* fixed link

* fixed theme toggle

* fixed text

* fixed popover, updated link color

* fixed password field

* fixed avatar and card

* fixed dropdown

* fixed skeleton

* improved password field code

* fixed tabs

* fixed user button

* fixed demo header

* fixed demo select

* fixed theme provider

* fixed demo color mode

* fixed demo theme

* deleted dev app

* removed demo app loading indicator

* added description to demo app

* fixed small things

* updated server

* updated color mode doc

* updated docs

* removed unused dependencies
2024-04-30 14:30:36 +02:00
Stan Wohlwend
1adcaa5cd2 chore: update package versions 2024-04-28 12:02:53 +02:00
Stan Wohlwend
89617e12ec Remove user button from partial prerendering demo 2024-04-28 11:57:54 +02:00
Stan Wohlwend
02be9268c0 Partial prerendering loading screen 2024-04-28 11:50:17 +02:00
Stan Wohlwend
8814052702 Clarity 2024-04-28 10:41:31 +02:00
Stan Wohlwend
293670c83b chore: update package versions 2024-04-28 10:25:52 +02:00
Stan Wohlwend
9e0b3de21a Improve some error messages 2024-04-28 10:16:39 +02:00
Stan Wohlwend
0fa517a000 Update ESLint for partial prerendering demo 2024-04-27 14:30:04 +02:00
Stan Wohlwend
f71f2c74d2
Partial prerendering demo (#21) 2024-04-27 14:23:54 +02:00
Stan Wohlwend
aff6e3abc2 chore: update package versions 2024-04-26 14:00:52 +02:00
Stan Wohlwend
479c8ff528
GitHub actions linting (#17) 2024-04-24 15:37:30 +02:00
Zai Shi
66f6c86ddf
Basic Unit Tests (#15)
* added basic api testing framework

* added credential signup test

* added current user test

* added github action

* fixed bugs in action file

* updated action

* added pnpm setup

* added dependency install

* updated pnpm lock

* only run server tests

* added new package for e2e test

* removed unused tests

* updated action

* updated test command

* added env var reading

* fixed typo

* fixed typo

* fixed unit tests with staging

* added delay e2e test

* added start server to action

* fixed typo

* fix aciton

* updated github action

* fixed bugs

* fixed eslint error
2024-04-24 14:24:56 +02:00
Stan Wohlwend
083cccb511 chore: update package versions 2024-04-24 10:59:50 +02:00
Stan Wohlwend
628674ef90 Bump package versions 2024-04-23 12:11:26 +02:00
Stan Wohlwend
de3054d21f Bump versions 2024-04-22 14:01:55 +02:00
Stan Wohlwend
1a5ab65522 Bump package versions 2024-04-21 15:40:13 +02:00
Stan Wohlwend
3cbc164f52 Fix typo 2024-04-21 15:25:54 +02:00
Stan Wohlwend
deaa2b4172 Refer user to dashboard on demo 2024-04-21 15:16:21 +02:00
Zai Shi
96c26a7918
Magic link (#13)
* added magic link email, updated email template

* added magic link ui and db schema

* restructured sign in sign up page

* updated example custom button

* added joy tabs

* fixed bugs, added magic link errors, abstracted token creation

* added magic link callback

* fixed token bugs

* added more auth information to user object

* added changeset
2024-04-20 12:33:11 +02:00
Stan Wohlwend
44b14ec413 Add hint for demo 2024-04-18 17:44:28 +02:00
Zai Shi
dea8ad400b bumped version 2024-04-17 09:11:19 +02:00
Stan Wohlwend
1c93fe13ae suppressHydrationWarning for <body /> 2024-04-16 15:32:52 +02:00
Zai Shi
b4677ff272 bumped version 2024-04-15 16:55:56 +02:00
Zai Shi
075ca1d303 fixed demo header scroll and card frame padding 2024-04-15 14:02:09 +02:00
Zai Shi
866c8e6aaf bumped version 2024-04-14 15:34:23 +02:00
Zai Shi
c8d636b831 changed demo and dev resolution to bundler 2024-04-14 14:38:26 +02:00
Zai Shi
76ad603d7d bumped version 2024-04-14 14:29:57 +02:00
Zai Shi
9e6e92bbb9 export joy from a different dir 2024-04-14 14:22:48 +02:00
Zai Shi
5c1aaa7350 bumped version 2024-04-14 13:52:32 +02:00
Zai Shi
909afc1edf bumped version 2024-04-14 13:40:00 +02:00
Zai Shi
406913ca34 updated docs for user button 2024-04-14 13:36:48 +02:00
Zai Shi
5ae06585f2 added loading indicator, fixed loading buttons 2024-04-14 11:13:21 +02:00
Zai Shi
677f39f786 fixed small things in documentation 2024-04-14 08:24:20 +02:00
Zai Shi
2995d9662a
UserButton component and account setting page (#10)
* fixed sign in title bug

* addec changeset

* added popover

* added dropdown, improved user button

* improved user button

* added avatar, adding account setting

* added send verification email

* added plaintext to emails

* fixed select props

* added name update

* added password update

* added email password update

* only password update for accounts logged in credential

* fixed small errors in endpoints

* improved account setting page

* fixed types

* removed props export

* divider -> separator

* fixed accidently renamed dividers

* added changeset
2024-04-13 16:42:05 +02:00
Stan Wohlwend
d243001add Fix build 2024-04-11 16:45:26 +02:00
Zai Shi
66205229f4 bumped version 2024-03-22 16:18:03 +08:00
Zai Shi
7ef734981b bumped version 2024-03-22 11:28:25 +08:00
Zai Shi
2eda71b42b
Fixed UI bugs, added card component (#7)
* updated default divider to shadcn

* added card to signin page

* removed card content, card header, and card footer

* removed card from signin

* Update size of text in DividerWithText component

* added changeset
2024-03-22 04:27:43 +01:00
Zai Shi
693b058cc0 removed secondary background color 2024-03-21 20:48:19 +08:00
Zai Shi
29f909fa16 bumped version 2024-03-21 18:43:09 +08:00
Zai Shi
63a90fed35 bumped version 2024-03-21 17:58:29 +08:00
Zai Shi
9e9907f2b3
New UI system (#5)
* added stack-ui package

* added ui elements

* fixed react package type bug, added deleted components back

* updated button and typography interface

* added element provider

* moved all elements to element context

* added ui-joy

* moved UIPage component and update Button component

* added StackUIProvider

* added UI framework switch

* changed theme to colormode

* changed StackUIProvider interface

* updated file names

* updated package config

* fixed types and dependencies

* fixed color theme

* added custom button

* converted signin page to stack-ui

* moved oauth button stack-ui

* fixed styling bugs

* changed color/variant interface for button and text

* moved credential sign up to stack-ui

* moved card header and divider to stack-ui

* moved card-frame to stack-ui, fixed bugs

* fixed bugs, added global bg color to dev app

* moved forgot password to stack-ui

* updated styling

* moved form warning text to stack-ui

* added redirect message card to stack-ui

* moved everything to stack-ui, removed daisy and tailwind

* added joy input

* simplified code

* fixed joy button

* restructured UI provider interface

* made joy color mode work

* fixed small ui bugs

* updated demo, changed constant structures in stack-ui

* added select ui to demo

* added joy ui text

* added mui divider

* Used dynamic elements to replace useElements hook

* changed full page behaviour (100vh => 100%)

* added auto detect parent to cardframe

* updated documentation

* updated customization overview

* updated custom color doc

* fixed system color mode bug

* fixed select visual on safari

* changed UI provider interface

* renamed files to lower case

* fixed import bug

* finished custom colors doc

* added docs for custom components

* removed wrong cased files

* updated custom pages docs

* updated custom component docs

* elements -> components

* fixed missing rename

* fixed broken links in docs

* removed tailwind css import in stack

* fixed typos and small problems

* cleaned up package.json files

* updated dependencies

* fixed stack-server bug (webpack xxx not a function and u type error)

* updated setup doc

* added changeset

* fixed the 'use client' bug in stack-ui

* merged stack-ui and stack-ui-joy into stack

* renamed StackUIProvider to StackTheme

* unified imports

* added hook details to custom color doc
2024-03-21 10:51:53 +01:00
Zai Shi
ed6b50d429 published new npm version 2024-03-13 11:13:16 +08:00
Zai Shi
9d50641a45 added redirect to default to sign-in/up/out 2024-03-13 10:17:48 +08:00
Zai Shi
c0151a8e5d removed redirectUrl in functions, added newUser attribute to signInWithOAuth, added after sign-in/up/out urls 2024-03-12 17:31:28 +08:00
Zai Shi
08369135aa upgraded next version in demo, added loading indicator 2024-03-07 23:33:38 +08:00
Stan Wohlwend
f5108bc53d Fix SSR error if Suspense is missing 2024-03-07 14:32:52 +01:00
Zai Shi
e76a2cd5fa versuib bump 2024-03-06 23:46:39 +08:00
Zai Shi
7ce58d3efb Bumped version 2024-03-06 22:44:43 +08:00
Zai Shi
397a4046ba Oauth -> OAuth 2024-03-06 21:17:14 +08:00
Stan Wohlwend
5671a1d7aa No longer export validateEmail 2024-03-06 12:59:21 +01:00
Zai Shi
e1a85e0ffc published stack-sc 2024-03-05 13:26:54 +08:00
Zai Shi
55150eab78 bumped versions 2024-03-05 13:23:08 +08:00
Stan Wohlwend
459fbdea5b Source maps 2024-03-04 22:46:07 +01:00
Stan Wohlwend
ac8bfe4845 Better clean script 2024-03-04 19:37:39 +01:00
Zai Shi
5d43e48248 published npm pacakges 2024-03-04 21:20:59 +08:00
Stan Wohlwend
c0d5166e8c Remove some commented code 2024-03-03 12:33:05 +01:00
Zai Shi
5a772ee6c9 changed modal bg color added favicon to demo, fixed demo navbar bg 2024-02-29 10:40:47 +01:00
Zai Shi
6b29ab762b finihsed demo 2024-02-28 23:09:46 +01:00
Zai Shi
2d0a35e2f5 removed unused in demo 2024-02-28 18:39:40 +01:00
Zai Shi
7598511c31 moved baseUrl default to env var 2024-02-28 18:21:13 +01:00
Zai Shi
a5933c43de added demo app, renamed nextjs folder to dev, added docusaurus to turbo 2024-02-28 18:08:23 +01:00
Stan Wohlwend
ced0be74b3 Move code (initial commit) 2024-02-28 14:35:30 +01:00