-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(soffit-form): submit form #693
Merged
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
00e51eb
feat(soffit-pwa): page form
njfamirm 71e788c
feat(soffit-pwa): lottery code registration form
njfamirm 767bda7
feat(soffit-pwa): button style
njfamirm 6ca313b
feat(soffit-pwa): activityType on page form
njfamirm f278802
feat(soffit-pwa): improve form styles
njfamirm 4bc52af
fix(soffit-pwa): page form styles
njfamirm dc20082
feat(soffit-form): submit form
njfamirm aa3b294
feat(soffit-form): load api server info from config file
njfamirm 40ce349
refactor(soffit-pwa): send form to server
njfamirm e99f2e5
refactor(soffit-pwa): remove process from config!
njfamirm af3acd7
refactor(soffit-pwa): renderRoot for select input
njfamirm f0d61f8
fix(soffit-pwa): app config and temp service worker
alimd 4894547
fix(pwa): add blank service-worker.js for debug
alimd e78fc58
feat(soffit-pwa): load config
alimd 405a0e7
fix(text-field): elevation bug
alimd 61903f8
feat(pwa/esbuild): pretty mode
alimd 3d0f8d5
feat(soffit-pwa): componentize fieldset
njfamirm de06e45
feat(ui-kit/text-field): value prop
alimd 60413d1
fix(soffit-pwa): remove submit at firstUpdated
njfamirm be84c63
refactor(soffit-pwa): radio-group
alimd fdbc609
feat(soffit-pwa): radio-group value
alimd 5723c6a
feat(surface,icon-box): disabled animation
alimd 37d9803
feat(fields): name property
alimd 1a81dcc
feat(soffit-pwa): form data gathering and submit process
alimd 9294c58
fix(soffit-pwa): build issue
alimd f050d6d
feat(soffit/lottery-box): success color
alimd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ Desktop.ini | |
*.d.ts | ||
*.js | ||
!*.config.js | ||
!**/res/*.js | ||
dist | ||
build | ||
|
||
|
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 @@ | ||
console.log('Service worker not build in development mode.') |
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
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,4 @@ | ||
window.appConfig = { | ||
api: 'http://localhost:8000', | ||
token: 'YOUR_SECRET_TOKEN', | ||
}; |
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 @@ | ||
console.log('Service worker not build in development mode.') |
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,20 @@ | ||
declare global { | ||
// eslint-disable-next-line no-var | ||
var appConfig: Record<string, string | number | boolean | undefined> | undefined; | ||
} | ||
|
||
const debugConfig = localStorage.getItem('DEBUG_CONFIG'); | ||
if (debugConfig != null) { | ||
globalThis.appConfig = JSON.parse(debugConfig); | ||
} | ||
|
||
function getConfKey<T extends string | number | boolean>(key: string): T { | ||
const val = globalThis.appConfig?.[key]; | ||
if (val == null) throw new Error('invalid_app_config', {cause: {key, val}}); | ||
return val as T; | ||
} | ||
|
||
export const config = { | ||
api: getConfKey<string>('api'), | ||
token: getConfKey<string>('token'), | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / ESLint
Require `let` or `const` instead of `var`