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

Frontend #10

Open
wants to merge 170 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
d7d5021
Init
dhonx Feb 17, 2021
41131ea
Update github link
dhonx Feb 17, 2021
e038f9a
Add prettier;
dhonx Feb 17, 2021
39d9663
prettier: Increase print width
dhonx Feb 18, 2021
3f78877
Cleanup stores
dhonx Feb 18, 2021
4407f5b
Rename and cleanup server api
dhonx Feb 18, 2021
ffe875d
Cleanup routes
dhonx Feb 18, 2021
57af239
Upgrade packages
dhonx Feb 19, 2021
ba4252c
Update rollup-plugin-svelte config
dhonx Feb 19, 2021
8066481
Make error overflow-x auto
dhonx Feb 19, 2021
09ef132
Logon & Register
dhonx Feb 19, 2021
8510a7b
Cleanup
dhonx Feb 19, 2021
254daff
refactor var name: loginData => data
itsdonnix Feb 19, 2021
89d5840
Add AppBar & NavigationDrawer
itsdonnix Feb 19, 2021
badb1a3
Cleanup routes
itsdonnix Feb 19, 2021
66765be
Cleanup stores
itsdonnix Feb 19, 2021
432f02d
Refactor SiteNavigation & AppBar
itsdonnix Feb 19, 2021
0a39904
😅
itsdonnix Feb 19, 2021
866ebf5
Handle NavigationDrawer & container spacing;
itsdonnix Feb 19, 2021
1eafe41
CI: Ignore frontend folder
itsdonnix Feb 19, 2021
037d4c7
Add toggle dark button
itsdonnix Feb 19, 2021
c7cfe07
Update template.html
itsdonnix Feb 19, 2021
e7bde3f
Dont need !important
itsdonnix Feb 19, 2021
7213184
Remove global.css; So we can get rid of some !imporant
itsdonnix Feb 19, 2021
37e6707
Only change anchor font color under navigation drawer;
itsdonnix Feb 19, 2021
ab91894
Improve s-list-item__content's anchor
itsdonnix Feb 19, 2021
30fea5c
Add more pages
itsdonnix Feb 19, 2021
339472c
Force .m-0
itsdonnix Feb 19, 2021
7c6406d
Add tenants subscribtion page
itsdonnix Feb 20, 2021
3d5a749
Update package.json
itsdonnix Feb 20, 2021
3247760
Add netlify config file
itsdonnix Feb 20, 2021
8bd30a8
Using port 8080 on build & Using dev server instead
itsdonnix Feb 20, 2021
c5cdc7b
Delete netlify config file
itsdonnix Feb 20, 2021
893a5d7
Add vercel
itsdonnix Feb 20, 2021
996d762
CI: Add frontend preview
itsdonnix Feb 20, 2021
fca07c7
Test CI
itsdonnix Feb 20, 2021
bdb5f6e
Fix theme color have null value when there is no theme set on the loc…
itsdonnix Feb 20, 2021
afabd97
Make label color more bright on dark theme
itsdonnix Feb 20, 2021
62f9b7a
Add logout menu
itsdonnix Feb 20, 2021
e27de79
Migrate to scss
itsdonnix Feb 20, 2021
f8556b9
Tenant description table
itsdonnix Feb 20, 2021
c81a879
Change default button instead of anchor tag
itsdonnix Feb 20, 2021
a7db0dc
Using svelte-materialify table component instead
itsdonnix Feb 20, 2021
3e6f5ae
Minor cleanup package.json
itsdonnix Feb 20, 2021
2359386
Add preloading
itsdonnix Feb 20, 2021
c28d8d6
Make table head font bold
itsdonnix Feb 20, 2021
387948d
Also apply transition to padding-right;
itsdonnix Feb 21, 2021
334eee7
Make transition only applied on medium screens and up;
itsdonnix Feb 21, 2021
3a23938
Minor cleanup
itsdonnix Feb 21, 2021
b6ddb43
Only transition color on app bar and its child elements
itsdonnix Feb 21, 2021
535871e
Disable service-worker on dev mode:
itsdonnix Feb 21, 2021
34e679c
Update svelte-materialify
itsdonnix Feb 21, 2021
5bb5596
Move stores.js to stores folder
itsdonnix Feb 21, 2021
e668b1f
Add back-end simulation;
itsdonnix Feb 21, 2021
10aaa52
Improve preloading
itsdonnix Feb 21, 2021
ff7f76b
Add create & update dialog
itsdonnix Feb 22, 2021
1a9ec46
Bordered table
itsdonnix Feb 22, 2021
a36d995
workaround: background color of button with disabled state
itsdonnix Feb 22, 2021
19e8297
Cleanup
itsdonnix Feb 22, 2021
72db51c
Implement update tenant
itsdonnix Feb 22, 2021
6fa5bb0
Only update store when response from server is OK
itsdonnix Feb 22, 2021
b519749
Implement remove tenant
itsdonnix Feb 22, 2021
b4e086d
Auto reset tenant field when the remove dialog is blur
itsdonnix Feb 22, 2021
563f675
Disable button when send request
itsdonnix Feb 22, 2021
9c3a422
Fix bug
itsdonnix Feb 22, 2021
401f9ff
Using text button type instead on actions buttons
itsdonnix Feb 22, 2021
30f049a
Increase padding of .main
itsdonnix Feb 22, 2021
3c12757
Only show table when data is exist
itsdonnix Feb 22, 2021
76b157f
Minor refactor
itsdonnix Feb 22, 2021
33b321e
Fix warning `Icon create with unknown prop float`
itsdonnix Feb 23, 2021
49ee692
Add create, update, remove users
itsdonnix Feb 24, 2021
9cae13c
Change file names
itsdonnix Feb 24, 2021
563f383
Fix bug when updating tenant & when updating user
itsdonnix Feb 24, 2021
f38a451
Update caption `Add User` => `Create User`
itsdonnix Feb 24, 2021
687bad7
Add Credential caption
itsdonnix Feb 24, 2021
b5c8d55
Update caption
itsdonnix Feb 24, 2021
ba95821
Update users backend route
itsdonnix Feb 24, 2021
019e6b1
Fix bug
itsdonnix Feb 24, 2021
e30781b
Make actions button padding to 0
itsdonnix Feb 24, 2021
b91f938
Update user client request url
itsdonnix Feb 24, 2021
9e60fc7
Remove s-card class
itsdonnix Feb 24, 2021
bc4c46f
Add get, create, update, remove group
itsdonnix Feb 24, 2021
57c51d0
Refactor: Change function name to `reset` instead
itsdonnix Feb 24, 2021
9186b39
Disable dashboard menu on navigation drawer
itsdonnix Feb 24, 2021
35f7cfe
Cleanup
itsdonnix Feb 24, 2021
8a9b596
Dont show app bar & navigation drawer on login & register page
itsdonnix Feb 24, 2021
ec6553a
Redirect to signon page when logout
itsdonnix Feb 24, 2021
dda4dd0
Fix typo
itsdonnix Feb 24, 2021
ef51bf7
Simulate login
itsdonnix Feb 24, 2021
b707440
Update sign-on/register page title suffix
itsdonnix Feb 24, 2021
b50d8dd
Add get, create, update, remove role
itsdonnix Feb 24, 2021
c736f57
Merge given name, middle name, family name into one column
itsdonnix Feb 24, 2021
8635ac6
Update data
itsdonnix Feb 24, 2021
97ede21
Cleanup
itsdonnix Feb 24, 2021
1987d59
Reactive title
itsdonnix Feb 24, 2021
bc67523
Disable phone column & Add active column to users
itsdonnix Feb 24, 2021
2eba60b
Make active column on tenants subscribtion table toggleable
itsdonnix Feb 24, 2021
8484a6a
Allow empty on second name field
itsdonnix Feb 24, 2021
b63490f
Cleanup
itsdonnix Feb 24, 2021
ff41490
Refactor stores and split up
itsdonnix Feb 24, 2021
144f8a4
Fetch data per page instead
itsdonnix Feb 24, 2021
0685afd
Add use as credential id checkbox
itsdonnix Feb 24, 2021
2f635c3
Fix bugs
itsdonnix Feb 24, 2021
7ccb7de
Fix warning
itsdonnix Feb 24, 2021
6fe15ad
Cleanup unused imports
itsdonnix Feb 24, 2021
0afea10
Cleanup
itsdonnix Feb 25, 2021
1bf1aef
Disable service worker for now
itsdonnix Feb 25, 2021
c0667df
Add username same as email address checkbox
itsdonnix Feb 25, 2021
1b00b78
Add get, create, update, remove permission
itsdonnix Feb 25, 2021
4d7f7ef
Make remove/delete dialog component
itsdonnix Feb 25, 2021
f3f04e4
Make create/update dialog component
itsdonnix Feb 25, 2021
cec1755
Cleanup: Remove unused imports
itsdonnix Feb 25, 2021
bfc048c
Cleanup
itsdonnix Feb 25, 2021
82a396b
Share most used objects
itsdonnix Feb 25, 2021
f9e23de
Remove divider
itsdonnix Feb 25, 2021
91860d7
Remove permission constraints select
itsdonnix Feb 25, 2021
d8fd0c0
Bring back preload all data on _layout.svelte
itsdonnix Feb 25, 2021
8b1db29
Upgrade dependencies
itsdonnix Feb 26, 2021
8cd794f
set prevent assignment to true
itsdonnix Feb 26, 2021
65d4b71
Install lodash.uniq
itsdonnix Feb 26, 2021
b8a6914
Add dialog to manage members(users) of group
itsdonnix Feb 26, 2021
8feb573
Refactor: Reusable components
itsdonnix Feb 26, 2021
aed6e45
Refactor component name
itsdonnix Feb 26, 2021
b0ed948
Add permission constraint editor
itsdonnix Feb 27, 2021
fbd8d5c
Disable name field when on update mode
itsdonnix Feb 27, 2021
bda1e9a
Using textarea instead for description field
itsdonnix Feb 27, 2021
1f11ae8
Disable name field when on update mode
itsdonnix Feb 27, 2021
bf649a5
Add constraint editor on create permission dialog
itsdonnix Feb 27, 2021
89ad42b
Add aria-label prop and title prop to add constraint button & remove…
itsdonnix Feb 27, 2021
3281311
Add todo for a11y
itsdonnix Feb 27, 2021
cad2051
Using button group instead of radio
itsdonnix Feb 26, 2021
5846298
Fix spacing & typo :D
itsdonnix Feb 26, 2021
642ffaf
Auto focus/auto select after create new constraint
itsdonnix Feb 26, 2021
66c11e6
Auto focus/auto select after remove last constraint
itsdonnix Feb 26, 2021
dc84b7c
Disable fields when there is no/invalid selected constraint
itsdonnix Feb 26, 2021
6bb3c60
Empty type on initial constraint object
itsdonnix Feb 26, 2021
3fa268d
Reest state when there is no/invalid selected index
itsdonnix Feb 26, 2021
be431e2
Only focus/select on last option if the removed option is the last o…
itsdonnix Feb 26, 2021
538ce4e
Disable remove button when there is no/valid selected index
itsdonnix Feb 26, 2021
9596ef3
Add FloatAddButton component
itsdonnix Feb 26, 2021
1bf0444
Cleanup: remove unused imports
itsdonnix Feb 26, 2021
49e4616
Increase navigation drawer item vertical spacing
itsdonnix Feb 26, 2021
da054e2
Improve dialog overflow
itsdonnix Feb 27, 2021
e1487ca
Increase constraint editor vertical padding
itsdonnix Feb 27, 2021
7d9359c
Disable tenant active checkbox
itsdonnix Feb 27, 2021
1c0a2cd
Improve group members spacing
itsdonnix Feb 27, 2021
c97dc42
Set oveflow y auto to select constraint element
itsdonnix Feb 27, 2021
0931d49
Sync username and credential id if `Use as Credential ID` checkbox is…
itsdonnix Feb 28, 2021
0760111
Increase common dialog padding;
itsdonnix Feb 28, 2021
4434386
UX improvement
itsdonnix Feb 28, 2021
bc0c05c
Sync username and email if `Username same as email address` checkbox …
itsdonnix Feb 28, 2021
b833c65
Input type email for email data
itsdonnix Feb 28, 2021
3fc239a
Update packages
itsdonnix Mar 21, 2021
e5f2f66
Add GroupMembers component
itsdonnix Mar 21, 2021
d8ee4ca
Add svelte-check;
itsdonnix Mar 21, 2021
5e34d49
svelte-check: Fail on warnings
itsdonnix Mar 21, 2021
da3c799
Fix users is removed from members when saving
itsdonnix Mar 21, 2021
0e804ad
Add warning when members have inactive users
itsdonnix Mar 21, 2021
2f723ad
Fix group members doesnt update when save
itsdonnix Mar 21, 2021
921ef36
Only show active users on manage group members
itsdonnix Mar 21, 2021
a86aea9
Cleanup: Remove unused imports
itsdonnix Mar 25, 2021
f0846f7
Revert "Only show active users on manage group members"
itsdonnix Mar 25, 2021
17789a4
Make default title null
itsdonnix Mar 25, 2021
171f2e8
Add title to add member and remove member
itsdonnix Mar 25, 2021
b11c6cb
Update manage permission constraints button's title
itsdonnix Mar 25, 2021
e8c1800
Upgrade dependencies
itsdonnix Mar 27, 2021
b9d8499
Upgarade dependencies
itsdonnix Mar 29, 2021
81d7d7b
Use small button ibutton instead
itsdonnix Mar 29, 2021
ef6e8b4
Refactor component name: SmallButton -> XSmallButton
itsdonnix Mar 29, 2021
fc43574
Update manage groups UI
itsdonnix Mar 29, 2021
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
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Build

on:
push:
paths:
- "!src/main/frontend/**"
pull_request:
paths:
- "!src/main/frontend/**"
schedule:
- cron: '15 3 * * *'
- cron: "15 3 * * *"

jobs:
build:
Expand Down Expand Up @@ -51,16 +55,15 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: ci-cd
SLACK_USERNAME: Bob the Builder
SLACK_ICON: 'https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png'
SLACK_FOOTER: '${{ github.repository }}:${{ steps.version.outputs.vlingo_version }}'
SLACK_ICON: "https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png"
SLACK_FOOTER: "${{ github.repository }}:${{ steps.version.outputs.vlingo_version }}"

deploy-github:
name: Deploy to GitHub
runs-on: ubuntu-latest
needs: build
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && github.repository_owner == 'vlingo'
steps:

- uses: actions/checkout@v2

- name: Set up JDK 1.8
Expand Down Expand Up @@ -90,19 +93,16 @@ jobs:
SLACK_COLOR: "${{ job.status == 'success' && 'good' || 'danger' }}"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: ci-cd
SLACK_USERNAME: Suzi the Publisher
SLACK_ICON: 'https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png'
SLACK_FOOTER: '${{ github.repository }}'
SLACK_TITLE: 'GitHub Deployment'
SLACK_MESSAGE: ':rocket: ${{ needs.build.outputs.vlingo_version }}'
SLACK_USERNAME: Bob the Builder
SLACK_ICON: "https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png"
SLACK_FOOTER: "${{ github.repository }}"

deploy-central:
name: Deploy to Maven Central
runs-on: ubuntu-latest
needs: build
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && github.repository_owner == 'vlingo'
steps:

- uses: actions/checkout@v2

- name: Set up JDK 1.8
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: ci-cd
SLACK_USERNAME: Suzi the Publisher
SLACK_ICON: 'https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png'
SLACK_FOOTER: '${{ github.repository }}'
SLACK_TITLE: 'Sonatype Deployment'
SLACK_MESSAGE: ':rocket: ${{ needs.build.outputs.vlingo_version }}'
SLACK_ICON: "https://vlingo.io/wp-content/uploads/cropped-vlingo-favicon-180x180.png"
SLACK_FOOTER: "${{ github.repository }}"
SLACK_TITLE: "Sonatype Deployment"
SLACK_MESSAGE: ":rocket: ${{ needs.build.outputs.vlingo_version }}"
36 changes: 36 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Frontend
on:
push:
paths:
- "src/main/frontend/**"
pull_request:
paths:
- "src/main/frontend/**"

jobs:
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/main/frontend
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"

- name: Install dependencies
run: npm install

- name: Test Sapper Build
run: npm run build

# - name: Vercel Deployment
# uses: xmflsct/[email protected]
# with:
# vercelToken: ${{ secrets.VERCEL_TOKEN }}
# vercelOrgId: ${{ secrets.VERCEL_ORG_ID }}
# vercelProjectId: ${{ secrets.VERCEL_PROJECT_ID }}
# githubToken: ${{ secrets.PAT }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ target/
.idea/
*.iml
*.iws
wireframes/vlingo-auth-ui
9 changes: 9 additions & 0 deletions src/main/frontend/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
8 changes: 8 additions & 0 deletions src/main/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/node_modules/
/src/node_modules/@sapper/
yarn-error.log
/cypress/screenshots/
/__sapper__/

.vercel
2 changes: 2 additions & 0 deletions src/main/frontend/.vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__sapper__
node_modules
5 changes: 5 additions & 0 deletions src/main/frontend/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"esbenp.prettier-vscode"
]
}
Loading