Skip to content

Commit

Permalink
New UI (#26)
Browse files Browse the repository at this point in the history
* Remove all files

* ng new with Angular 15

* Add Events page

* Add Event page

* Add people component

* Load people filter and result from API

* Add skeleton loader

* Add people filter functionality

* Add DelegateTypes Component

* Add Zones Component

* Tweak selected tab based on current route

* Add Positions Component

* Add PackageOptions Component

* Add DelegateTypeForm Component

* Add ZonesForm Component

* Add Zones sorting functionality

* Add Positions sorting functionality

* Add PackageOptionsForm Component

* Add check to Member column in People result

* Add Person Component

* Add Print Component

* Add BadgeTemplates Component

* Add DETAILS keyword

* Add EditPackageOptions permission

* Load badge preview in override page

* Add skeleton loader in override page

* Add ability to have two badges per page in any badge template

* Add functionalities in override page

* Change override page layout

* Add functionalities in Scans page

* Fix badge print preview zooming problem

* Add query params to People and Print components

* Separate css body color for print component only

* Manage tabs visibility

* Print preview with PersonAccreditationID

* Set limit and offset for PrintPreview

* Add settings component

* Use Angular components for badges

* Add badge-wsi2023-ga

* Add badge-wsi2024-cpw

* Remove manual BadgeHTMLTemplate usage

* Add option for user to print one or two badges per page

* Add change event button link

* Add SetupScanApp component

* Add permissions checks

* Add AdHocPrinting Component

* Finalise AdHocPrinting functionality

* Update angular.json

* Add build.yml
  • Loading branch information
hengkysanjaya123 authored Dec 13, 2023
1 parent 5735050 commit e694939
Show file tree
Hide file tree
Showing 350 changed files with 14,397 additions and 22,939 deletions.
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on: [ push ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.13.0
- name: Setup
run: |
npm install -g @angular/cli
npm ci --legacy-peer-deps
env:
CI: true

- name: Build for staging
if: github.ref == 'refs/heads/staging'
run: ng build --configuration=staging
- name: Configure AWS credentials for staging
if: github.ref == 'refs/heads/staging'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy to staging
if: github.ref == 'refs/heads/staging'
run: |
aws s3 sync dist/ s3://accreditation.worldskills.show --exclude index.html --cache-control max-age=31536000
aws s3 cp dist/index.html s3://accreditation.worldskills.show/index.html --metadata-directive REPLACE --cache-control max-age=60
aws s3 cp dist/assets/i18n/ s3://accreditation.worldskills.show/assets/i18n/ --recursive --metadata-directive REPLACE --cache-control max-age=3600
- name: Invalidate staging
if: github.ref == 'refs/heads/staging'
run: aws cloudfront create-invalidation --distribution-id E3JVPI0JFLBPOP --paths /index.html /assets/i18n/*
50 changes: 42 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
/node_modules/
/.settings/
/.sass-cache/
/.tmp/
/dist/
/app/bower_components/
/app/scripts/config.js
.DS_Store
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
24 changes: 0 additions & 24 deletions .jshintrc

This file was deleted.

18 changes: 0 additions & 18 deletions .project

This file was deleted.

1 change: 0 additions & 1 deletion .tern-project

This file was deleted.

Loading

0 comments on commit e694939

Please sign in to comment.