create: new folder
45
frontend-roadreport-deploy/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
package-lock.json
|
||||||
|
|
||||||
|
# Compiled output
|
||||||
|
/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
|
||||||
|
|
||||||
|
.angular/
|
||||||
3
frontend-roadreport-deploy/.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
27
frontend-roadreport-deploy/README.md
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# RoadReport
|
||||||
|
|
||||||
|
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.4.
|
||||||
|
|
||||||
|
## Development server
|
||||||
|
|
||||||
|
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
|
||||||
|
|
||||||
|
## Code scaffolding
|
||||||
|
|
||||||
|
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||||
|
|
||||||
|
## Running unit tests
|
||||||
|
|
||||||
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||||
|
|
||||||
|
## Running end-to-end tests
|
||||||
|
|
||||||
|
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
|
||||||
|
|
||||||
|
## Further help
|
||||||
|
|
||||||
|
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
||||||
104
frontend-roadreport-deploy/angular.json
Normal file
|
|
@ -0,0 +1,104 @@
|
||||||
|
{
|
||||||
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
|
"version": 1,
|
||||||
|
"newProjectRoot": "projects",
|
||||||
|
"projects": {
|
||||||
|
"road-report": {
|
||||||
|
"projectType": "application",
|
||||||
|
"schematics": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"style": "scss"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "",
|
||||||
|
"sourceRoot": "src",
|
||||||
|
"prefix": "app",
|
||||||
|
"architect": {
|
||||||
|
"build": {
|
||||||
|
"builder": "@angular-builders/custom-webpack:browser",
|
||||||
|
"options": {
|
||||||
|
"outputPath": "dist/road-report",
|
||||||
|
"index": "src/index.html",
|
||||||
|
"main": "src/main.ts",
|
||||||
|
"polyfills": ["zone.js"],
|
||||||
|
"tsConfig": "tsconfig.app.json",
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": ["src/favicon.ico", "src/assets"],
|
||||||
|
"styles": ["src/styles.scss"],
|
||||||
|
"scripts": [],
|
||||||
|
"customWebpackConfig": {
|
||||||
|
"path": "./webpack.config.js"
|
||||||
|
},
|
||||||
|
"allowedCommonJsDependencies": [
|
||||||
|
"buffer",
|
||||||
|
"dayjs",
|
||||||
|
"apexcharts",
|
||||||
|
"leaflet",
|
||||||
|
"ngx-lightbox"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "1mb",
|
||||||
|
"maximumError": "1mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "2kb",
|
||||||
|
"maximumError": "4kb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputHashing": "all"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"buildOptimizer": false,
|
||||||
|
"optimization": false,
|
||||||
|
"vendorChunk": true,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "production"
|
||||||
|
},
|
||||||
|
"serve": {
|
||||||
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"browserTarget": "road-report:build:production",
|
||||||
|
"proxyConfig": "./proxy.conf.json"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"browserTarget": "road-report:build:development",
|
||||||
|
"proxyConfig": "./proxy.conf.json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "development"
|
||||||
|
},
|
||||||
|
"extract-i18n": {
|
||||||
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
|
"options": {
|
||||||
|
"browserTarget": "road-report:build"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
|
"options": {
|
||||||
|
"polyfills": ["zone.js", "zone.js/testing"],
|
||||||
|
"tsConfig": "tsconfig.spec.json",
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": ["src/favicon.ico", "src/assets"],
|
||||||
|
"styles": ["src/styles.scss"],
|
||||||
|
"scripts": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cli": {
|
||||||
|
"analytics": "bd7e6812-e5ff-426b-a8aa-81ac8bb14696"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
frontend-roadreport-deploy/dist/road-report/114.83af9de57fdf8c48.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/176.2371990238ef1a25.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
"use strict";(self.webpackChunkroad_report=self.webpackChunkroad_report||[]).push([[176],{1176:(F,u,o)=>{o.r(u),o.d(u,{AuthModule:()=>c});var n=o(177),s=o(9417),t=o(8699),d=o(5471),m=o(8185),h=o(7110);function p(e,k){1&e&&t.nrm(0,"span",32)}function b(e,k){1&e&&(t.j41(0,"span"),t.EFF(1," Masuk "),t.k0s())}const f=[{path:"",component:(()=>{class e{constructor(a,i,r,l,g){this.formBuilder=a,this.auth=i,this.activatedRoute=r,this.router=l,this.helpers=g,this.isShowPassword=!1,this.isFormSubmitted=!1,this.redirectUrl="",this.form=this.formBuilder.group({username:[null,[s.k0.required]],password:[null,[s.k0.required]],remember_me:[!1]}),this.redirectUrl=this.activatedRoute.snapshot.queryParams.url}onSubmit(){this.form.valid&&(this.isFormSubmitted=!0,this.auth.login(this.form.value).subscribe({next:({data:a})=>{this.isFormSubmitted=!1,this.auth.setToken(a.token),this.auth.setJwtToken(a.jwtToken),this.router.navigate([this.redirectUrl??"/dashboard"])},error:a=>{this.isFormSubmitted=!1,this.helpers.toast("error","Username atau Password salah!")}}))}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(s.ok),t.rXU(d.u),t.rXU(m.nX),t.rXU(m.Ix),t.rXU(h.V))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-auth"]],hostAttrs:[1,"flex-fill"],decls:46,vars:6,consts:[[1,"row","h-100","mx-0"],[1,"col-lg-7","d-none","d-lg-block","bg-primary","p-5","text-white","position-relative","overflow-hidden"],[1,"position-relative","z-1"],["src","assets/images/batu_city_logo.png","alt","",1,"img-fluid","mb-4","pe-none"],[1,"display-1","mb-4","fw-bold"],[1,"h5","mb-0","fw-medium"],["src","assets/images/login_accent.png","alt","",1,"position-absolute","bottom-0","z-0","pe-none",2,"right","-1.75rem"],[1,"col-lg-5","py-5"],[1,"h-100","d-flex","flex-column","align-items-center"],[1,"mx-auto","mt-auto","mb-3","pt-3",2,"width","min(100%, 380px)"],[1,"text-center","mb-5"],[1,"h4","fw-semibold","mb-2"],[1,"mb-0","text-body-tertiary"],[1,"p-4","border","rounded-3",2,"box-shadow","6px 38px 48px 0px rgba(0, 0, 0, 0.08)"],[1,"fw-semibold","text-center","mb-4"],[3,"formGroup","ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","id","username","formControlName","username","placeholder","Masukan E-mail/Username","autocomplete","username",1,"form-control"],["for","password",1,"form-label"],[1,"input-group"],["id","password","formControlName","password","placeholder","Masukan Kata Sandi","autocomplete","off",1,"form-control",3,"type"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"bi",3,"ngClass"],[1,"form-check","mb-3","d-flex","justify-content-between"],[1,"rememberMe-group"],["type","checkbox","id","rememberMe","formControlName","remember_me","autocomplete","off",1,"form-check-input"],["for","rememberMe",1,"form-check-label"],["type","submit",1,"btn","btn-primary","d-block","w-100","btn-lg",3,"disabled"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[4,"ngIf"],[1,"text-center","small","text-body-tertiary","mb-0","mt-auto"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.j41(4,"h1",4),t.EFF(5,"Road"),t.nrm(6,"br"),t.EFF(7,"Report"),t.k0s(),t.j41(8,"h2",5),t.EFF(9," Sistem Pelaporan Kerusakan Lokasi"),t.nrm(10,"br"),t.EFF(11,"Dinas PUPR Kota Batu "),t.k0s()(),t.nrm(12,"img",6),t.k0s(),t.j41(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"h1",11),t.EFF(18,"Selamat Datang"),t.k0s(),t.j41(19,"p",12),t.EFF(20," Masukan username dan kata sandi anda untuk masuk ke dalam dashboard "),t.k0s()(),t.j41(21,"div",13)(22,"h5",14),t.EFF(23,"Masuk"),t.k0s(),t.j41(24,"form",15),t.bIt("ngSubmit",function(){return r.onSubmit()}),t.j41(25,"div",16)(26,"label",17),t.EFF(27,"Email/Username"),t.k0s(),t.nrm(28,"input",18),t.k0s(),t.j41(29,"div",16)(30,"label",19),t.EFF(31,"Password"),t.k0s(),t.j41(32,"div",20),t.nrm(33,"input",21),t.j41(34,"button",22),t.bIt("click",function(){return r.isShowPassword=!r.isShowPassword}),t.nrm(35,"i",23),t.k0s()()(),t.j41(36,"div",24)(37,"div",25),t.nrm(38,"input",26),t.j41(39,"label",27),t.EFF(40," Ingat saya "),t.k0s()()(),t.j41(41,"button",28),t.DNE(42,p,1,0,"span",29),t.DNE(43,b,2,0,"span",30),t.k0s()()()(),t.j41(44,"p",31),t.EFF(45," \xa9 All Right Reversed by Dinas PUPR Kota Batu "),t.k0s()()()()),2&i&&(t.R7$(24),t.Y8G("formGroup",r.form),t.R7$(9),t.Y8G("type",r.isShowPassword?"text":"password"),t.R7$(2),t.Y8G("ngClass",r.isShowPassword?"bi-eye-slash":"bi-eye"),t.R7$(6),t.Y8G("disabled",r.form.invalid||r.isFormSubmitted),t.R7$(1),t.Y8G("ngIf",r.isFormSubmitted),t.R7$(1),t.Y8G("ngIf",!r.isFormSubmitted))},dependencies:[n.YU,n.bT,s.qT,s.me,s.Zm,s.BC,s.cb,s.j4,s.JD]})}}return e})()}];let c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[n.MD,m.iI.forChild(f),s.X1]})}}return e})()}}]);
|
||||||
1
frontend-roadreport-deploy/dist/road-report/186.9e3760d3c202465a.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/257.88b5a23227acab06.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/323.14af06692b2a4ee9.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/348.da00f8c2e534226c.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/367.8443f3ce46ace501.js
vendored
Normal file
784
frontend-roadreport-deploy/dist/road-report/3rdpartylicenses.txt
vendored
Normal file
|
|
@ -0,0 +1,784 @@
|
||||||
|
@angular/animations
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/cdk
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 Google LLC.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
@angular/common
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/core
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/forms
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/localize
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/platform-browser
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@angular/router
|
||||||
|
MIT
|
||||||
|
|
||||||
|
@asymmetrik/ngx-leaflet
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2007-2022 Asymmetrik Ltd, a BlueHalo Company
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@auth0/angular-jwt
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2017 Auth0 Inc.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
@babel/runtime
|
||||||
|
MIT
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
@ckeditor/ckeditor5-angular
|
||||||
|
GPL-2.0-or-later
|
||||||
|
Software License Agreement
|
||||||
|
==========================
|
||||||
|
|
||||||
|
**CKEditor 5 component for Angular** – https://github.com/ckeditor/ckeditor5-angular <br>
|
||||||
|
Copyright (c) 2003-2023, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
||||||
|
|
||||||
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
||||||
|
|
||||||
|
Sources of Intellectual Property Included in CKEditor
|
||||||
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
|
||||||
|
|
||||||
|
Trademarks
|
||||||
|
----------
|
||||||
|
|
||||||
|
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
||||||
|
|
||||||
|
|
||||||
|
@ckeditor/ckeditor5-build-classic
|
||||||
|
GPL-2.0-or-later
|
||||||
|
Software License Agreement
|
||||||
|
==========================
|
||||||
|
|
||||||
|
**CKEditor 5 classic editor build** – https://github.com/ckeditor/ckeditor5-build-classic <br>
|
||||||
|
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
||||||
|
|
||||||
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
||||||
|
|
||||||
|
Sources of Intellectual Property Included in CKEditor
|
||||||
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
|
||||||
|
|
||||||
|
The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
|
||||||
|
|
||||||
|
* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
|
||||||
|
|
||||||
|
Trademarks
|
||||||
|
----------
|
||||||
|
|
||||||
|
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
||||||
|
|
||||||
|
|
||||||
|
@ckeditor/ckeditor5-watchdog
|
||||||
|
GPL-2.0-or-later
|
||||||
|
Software License Agreement
|
||||||
|
==========================
|
||||||
|
|
||||||
|
**CKEditor 5 watchdog feature** – https://github.com/ckeditor/ckeditor5-watchdog <br>
|
||||||
|
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
||||||
|
|
||||||
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
||||||
|
|
||||||
|
Sources of Intellectual Property Included in CKEditor
|
||||||
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
|
||||||
|
|
||||||
|
The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
|
||||||
|
|
||||||
|
* lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
|
||||||
|
|
||||||
|
Trademarks
|
||||||
|
----------
|
||||||
|
|
||||||
|
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
||||||
|
|
||||||
|
|
||||||
|
@ng-bootstrap/ng-bootstrap
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015-2018 Angular ng-bootstrap team
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
@popperjs/core
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2019 Federico Zivolo
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
apexcharts
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2018 ApexCharts
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
base64-js
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Jameson Little
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
buffer
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Feross Aboukhadijeh, and other contributors.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
dayjs
|
||||||
|
MIT
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018-present, iamkun
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
file-saver
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright © 2016 [Eli Grey][1].
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[1]: http://eligrey.com
|
||||||
|
|
||||||
|
|
||||||
|
ieee754
|
||||||
|
BSD-3-Clause
|
||||||
|
Copyright 2008 Fair Oaks Labs, Inc.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
|
leaflet
|
||||||
|
BSD-2-Clause
|
||||||
|
BSD 2-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2010-2023, Volodymyr Agafonkin
|
||||||
|
Copyright (c) 2010-2011, CloudMade
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
|
leaflet.markercluster
|
||||||
|
MIT
|
||||||
|
|
||||||
|
lodash-es
|
||||||
|
MIT
|
||||||
|
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||||
|
|
||||||
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
|
This software consists of voluntary contributions made by many
|
||||||
|
individuals. For exact contribution history, see the revision history
|
||||||
|
available at https://github.com/lodash/lodash
|
||||||
|
|
||||||
|
The following license applies to all parts of this software except as
|
||||||
|
documented below:
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|
||||||
|
|
||||||
|
mrmime
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
ng-apexcharts
|
||||||
|
MIT
|
||||||
|
|
||||||
|
ngx-awesome-uploader
|
||||||
|
MIT
|
||||||
|
|
||||||
|
ngx-filesaver
|
||||||
|
MIT
|
||||||
|
|
||||||
|
ngx-lightbox
|
||||||
|
MIT
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
ngx-toastr
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Scott Cooper <scttcper@gmail.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
rxjs
|
||||||
|
Apache-2.0
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tslib
|
||||||
|
0BSD
|
||||||
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
zone.js
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2010-2023 Google LLC. https://angular.io/license
|
||||||
|
|
||||||
|
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.
|
||||||
1
frontend-roadreport-deploy/dist/road-report/42.87bb3e2ac6183fef.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
"use strict";(self.webpackChunkroad_report=self.webpackChunkroad_report||[]).push([[42],{8042:(u,e,r)=>{r.r(e),r.d(e,{ErrorNotFoundModule:()=>c});var i=r(177),t=r(8699),a=r(8185);const d=[{path:"",component:(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-error-not-found"]],decls:13,vars:0,consts:[[1,"container","text-dark","text-center","rounded-2","p-4","bg-white","bg-white","h-100"],[1,"text-center","display-4"],["src","../../../assets//images/error.png","alt","not-found 404",1,"img-fluid",2,"width","5%","height","5%"],[1,"text-body-tertiary"],["href","/","routerLink","/dashboard/home"],[1,"btn","btn-primary"]],template:function(n,m){1&n&&(t.j41(0,"div",0)(1,"div")(2,"h1",1),t.EFF(3,"404"),t.k0s(),t.nrm(4,"img",2),t.k0s(),t.j41(5,"div")(6,"h4"),t.EFF(7,"Oppps, halaman tidak ditemukan..."),t.k0s(),t.j41(8,"p",3),t.EFF(9,"halaman yang kamu cari tidak tersedia."),t.k0s(),t.j41(10,"a",4)(11,"button",5),t.EFF(12,"Back to home"),t.k0s()()()())},dependencies:[a.Wk]})}}return o})()}];let c=(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[i.MD,a.iI.forChild(d)]})}}return o})()}}]);
|
||||||
9
frontend-roadreport-deploy/dist/road-report/550.90d712180418ebb6.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/641.81147924ef1f98a2.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/685.36a1f48f2a4f3cab.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/727.59815feb56cbe242.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/773.972632dba9fc584b.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/919.7d209c0e25a4d47f.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/965.e88361bb90823cf2.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/984.b27a37fd248eb18c.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/989.f8b0e6f5fb606670.js
vendored
Normal file
112
frontend-roadreport-deploy/dist/road-report/assets/graf-tes.json
vendored
Normal file
|
|
@ -0,0 +1,112 @@
|
||||||
|
{
|
||||||
|
"year": 2023,
|
||||||
|
"statusCode": 200,
|
||||||
|
"message": "OK",
|
||||||
|
"data": {
|
||||||
|
"month": [
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 2,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 2,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 8,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 9,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 2,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 5,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 4,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 7,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 6,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 2,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 4,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 1,
|
||||||
|
"Dalam Proses": 7,
|
||||||
|
"Perbaikan": 6,
|
||||||
|
"Ditolak": 2,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Ditindak Lanjuti": 5,
|
||||||
|
"Dalam Proses": 7,
|
||||||
|
"Perbaikan": 6,
|
||||||
|
"Ditolak": 1,
|
||||||
|
"Selesai & Divalidasi": 1,
|
||||||
|
"Selesai Perbaikan": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Ditindak Lanjuti": 2,
|
||||||
|
"Dalam Proses": 2,
|
||||||
|
"Perbaikan": 3,
|
||||||
|
"Ditolak": 3,
|
||||||
|
"Laporan Selesai & Sudah Divalidasi": 6,
|
||||||
|
"Selesai Perbaikan": 0,
|
||||||
|
"Semua Laporan": 16
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/batu_city_logo.png
vendored
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/error.png
vendored
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-dalam_proses.png
vendored
Normal file
|
After Width: | Height: | Size: 637 B |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-default.png
vendored
Normal file
|
After Width: | Height: | Size: 543 B |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-perbaikan.png
vendored
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-selesai-perbaikan.png
vendored
Normal file
|
After Width: | Height: | Size: 669 B |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-selesai.png
vendored
Normal file
|
After Width: | Height: | Size: 644 B |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/icon/marker-tindak_lanjut.png
vendored
Normal file
|
After Width: | Height: | Size: 549 B |
10
frontend-roadreport-deploy/dist/road-report/assets/images/loader.svg
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.60018 0.666626C8.96837 0.666626 9.26685 0.965103 9.26685 1.33329V3.99996C9.26685 4.36815 8.96837 4.66663 8.60018 4.66663C8.23199 4.66663 7.93351 4.36815 7.93351 3.99996V1.33329C7.93351 0.965103 8.23199 0.666626 8.60018 0.666626Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.60018 11.3333C8.96837 11.3333 9.26685 11.6318 9.26685 12V14.6666C9.26685 15.0348 8.96837 15.3333 8.60018 15.3333C8.23199 15.3333 7.93351 15.0348 7.93351 14.6666V12C7.93351 11.6318 8.23199 11.3333 8.60018 11.3333Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.41544 2.81522C3.67579 2.55487 4.0979 2.55487 4.35825 2.81522L6.24492 4.70189C6.50527 4.96224 6.50527 5.38435 6.24492 5.6447C5.98457 5.90505 5.56246 5.90505 5.30211 5.6447L3.41544 3.75803C3.15509 3.49768 3.15509 3.07557 3.41544 2.81522Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.9554 10.3552C11.2158 10.0949 11.6379 10.0949 11.8982 10.3552L13.7849 12.2419C14.0453 12.5022 14.0453 12.9243 13.7849 13.1847C13.5246 13.445 13.1025 13.445 12.8421 13.1847L10.9554 11.298C10.6951 11.0377 10.6951 10.6156 10.9554 10.3552Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.26685 7.99996C1.26685 7.63177 1.56532 7.33329 1.93351 7.33329H4.60018C4.96837 7.33329 5.26685 7.63177 5.26685 7.99996C5.26685 8.36815 4.96837 8.66663 4.60018 8.66663H1.93351C1.56532 8.66663 1.26685 8.36815 1.26685 7.99996Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9335 7.99996C11.9335 7.63177 12.232 7.33329 12.6002 7.33329H15.2668C15.635 7.33329 15.9335 7.63177 15.9335 7.99996C15.9335 8.36815 15.635 8.66663 15.2668 8.66663H12.6002C12.232 8.66663 11.9335 8.36815 11.9335 7.99996Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.24492 10.3552C6.50527 10.6156 6.50527 11.0377 6.24492 11.298L4.35825 13.1847C4.0979 13.445 3.67579 13.445 3.41544 13.1847C3.15509 12.9243 3.15509 12.5022 3.41544 12.2419L5.30211 10.3552C5.56246 10.0949 5.98457 10.0949 6.24492 10.3552Z" fill="white"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.7849 2.81522C14.0453 3.07557 14.0453 3.49768 13.7849 3.75803L11.8982 5.6447C11.6379 5.90505 11.2158 5.90505 10.9554 5.6447C10.6951 5.38435 10.6951 4.96224 10.9554 4.70189L12.8421 2.81522C13.1025 2.55487 13.5246 2.55487 13.7849 2.81522Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.4 KiB |
BIN
frontend-roadreport-deploy/dist/road-report/assets/images/login_accent.png
vendored
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
17
frontend-roadreport-deploy/dist/road-report/assets/scss/_custom-variables.scss
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
$variable-prefix: rr-;
|
||||||
|
$font-family-sans-serif: "Inter", sans-serif;
|
||||||
|
$btn-font-weight: 500;
|
||||||
|
$primary: #586af5;
|
||||||
|
$light-blue: #bcc4fb;
|
||||||
|
$warning: #ffab00;
|
||||||
|
$info: #2b79cc;
|
||||||
|
$success: #1fa493;
|
||||||
|
$danger: #f35625;
|
||||||
|
$min-contrast-ratio: 3;
|
||||||
|
$enable-validation-icons: false;
|
||||||
|
$enable-negative-margins: true;
|
||||||
|
$table-cell-padding-y: 1rem;
|
||||||
|
$table-cell-padding-x: 1rem;
|
||||||
|
$table-cell-padding-y-sm: 0.5rem;
|
||||||
|
$table-cell-padding-x-sm: 0.5rem;
|
||||||
|
$table-cell-vertical-align: middle;
|
||||||
BIN
frontend-roadreport-deploy/dist/road-report/bootstrap-icons.70a9dee9e5ab72aa.woff
vendored
Normal file
BIN
frontend-roadreport-deploy/dist/road-report/bootstrap-icons.bfa90bda92a84a6a.woff2
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/common.edccf03e54decc30.js
vendored
Normal file
BIN
frontend-roadreport-deploy/dist/road-report/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 11 KiB |
17
frontend-roadreport-deploy/dist/road-report/index.html
vendored
Normal file
BIN
frontend-roadreport-deploy/dist/road-report/layers-2x.9859cd1231006a4a.png
vendored
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
frontend-roadreport-deploy/dist/road-report/layers.ef6db8722c2c3f9a.png
vendored
Normal file
|
After Width: | Height: | Size: 696 B |
1
frontend-roadreport-deploy/dist/road-report/main.a4de25f49bf9da42.js
vendored
Normal file
BIN
frontend-roadreport-deploy/dist/road-report/marker-icon.d577052aa271e13f.png
vendored
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
1
frontend-roadreport-deploy/dist/road-report/polyfills.12730af3eaf7ad46.js
vendored
Normal file
1
frontend-roadreport-deploy/dist/road-report/runtime.67bf9f534a7d2740.js
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(()=>{"use strict";var e,v={},_={};function r(e){var f=_[e];if(void 0!==f)return f.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,n,d)=>{if(!t){var a=1/0;for(o=0;o<e.length;o++){for(var[t,n,d]=e[o],l=!0,i=0;i<t.length;i++)(!1&d||a>=d)&&Object.keys(r.O).every(p=>r.O[p](t[i]))?t.splice(i--,1):(l=!1,d<a&&(a=d));if(l){e.splice(o--,1);var b=n();void 0!==b&&(f=b)}}return f}d=d||0;for(var o=e.length;o>0&&e[o-1][2]>d;o--)e[o]=e[o-1];e[o]=[t,n,d]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,n){if(1&n&&(t=this(t)),8&n||"object"==typeof t&&t&&(4&n&&t.__esModule||16&n&&"function"==typeof t.then))return t;var d=Object.create(null);r.r(d);var o={};f=f||[null,e({}),e([]),e(e)];for(var a=2&n&&t;"object"==typeof a&&!~f.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>o[l]=()=>t[l]);return o.default=()=>t,r.d(d,o),d}})(),r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>(76===e?"common":e)+"."+{42:"87bb3e2ac6183fef",76:"edccf03e54decc30",114:"83af9de57fdf8c48",176:"2371990238ef1a25",186:"9e3760d3c202465a",257:"88b5a23227acab06",323:"14af06692b2a4ee9",348:"da00f8c2e534226c",367:"8443f3ce46ace501",550:"90d712180418ebb6",641:"81147924ef1f98a2",685:"36a1f48f2a4f3cab",727:"59815feb56cbe242",773:"972632dba9fc584b",919:"7d209c0e25a4d47f",965:"e88361bb90823cf2",984:"b27a37fd248eb18c",989:"f8b0e6f5fb606670"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="road-report:";r.l=(t,n,d,o)=>{if(e[t])e[t].push(n);else{var a,l;if(void 0!==d)for(var i=document.getElementsByTagName("script"),b=0;b<i.length;b++){var c=i[b];if(c.getAttribute("src")==t||c.getAttribute("data-webpack")==f+d){a=c;break}}a||(l=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",f+d),a.src=r.tu(t)),e[t]=[n];var s=(g,p)=>{a.onerror=a.onload=null,clearTimeout(u);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),g)return g(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(n,d)=>{var o=r.o(e,n)?e[n]:void 0;if(0!==o)if(o)d.push(o[2]);else if(121!=n){var a=new Promise((c,s)=>o=e[n]=[c,s]);d.push(o[2]=a);var l=r.p+r.u(n),i=new Error;r.l(l,c=>{if(r.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var s=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src;i.message="Loading chunk "+n+" failed.\n("+s+": "+u+")",i.name="ChunkLoadError",i.type=s,i.request=u,o[1](i)}},"chunk-"+n,n)}else e[n]=0},r.O.j=n=>0===e[n];var f=(n,d)=>{var i,b,[o,a,l]=d,c=0;if(o.some(u=>0!==e[u])){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var s=l(r)}for(n&&n(d);c<o.length;c++)r.o(e,b=o[c])&&e[b]&&e[b][0](),e[b]=0;return r.O(s)},t=self.webpackChunkroad_report=self.webpackChunkroad_report||[];t.forEach(f.bind(null,0)),t.push=f.bind(null,t.push.bind(t))})()})();
|
||||||
9
frontend-roadreport-deploy/dist/road-report/styles.cd1003a5ea49cc1d.css
vendored
Normal file
61
frontend-roadreport-deploy/package.json
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
"name": "road-report",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"ng": "ng",
|
||||||
|
"start": "ng serve",
|
||||||
|
"build": "ng build",
|
||||||
|
"watch": "ng build --watch --configuration development",
|
||||||
|
"test": "ng test"
|
||||||
|
},
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "^16.1.0",
|
||||||
|
"@angular/cdk": "^16.2.1",
|
||||||
|
"@angular/common": "^16.1.0",
|
||||||
|
"@angular/compiler": "^16.1.0",
|
||||||
|
"@angular/core": "^16.1.0",
|
||||||
|
"@angular/forms": "^16.1.0",
|
||||||
|
"@angular/platform-browser": "^16.1.0",
|
||||||
|
"@angular/platform-browser-dynamic": "^16.1.0",
|
||||||
|
"@angular/router": "^16.1.0",
|
||||||
|
"@asymmetrik/ngx-leaflet": "^16.0.1",
|
||||||
|
"@asymmetrik/ngx-leaflet-markercluster": "^16.0.0",
|
||||||
|
"@auth0/angular-jwt": "^5.1.2",
|
||||||
|
"@ckeditor/ckeditor5-angular": "^7.0.0",
|
||||||
|
"@ckeditor/ckeditor5-build-classic": "^39.0.1",
|
||||||
|
"@ng-bootstrap/ng-bootstrap": "^15.1.0",
|
||||||
|
"@popperjs/core": "^2.11.6",
|
||||||
|
"apexcharts": "^3.44.0",
|
||||||
|
"bootstrap": "^5.2.3",
|
||||||
|
"bootstrap-icons": "^1.10.5",
|
||||||
|
"dayjs": "^1.11.9",
|
||||||
|
"leaflet": "^1.9.4",
|
||||||
|
"leaflet.markercluster": "^1.5.3",
|
||||||
|
"ng-apexcharts": "^1.8.0",
|
||||||
|
"ngx-awesome-uploader": "^16.0.0",
|
||||||
|
"ngx-lightbox": "^3.0.0",
|
||||||
|
"ngx-toastr": "^17.0.2",
|
||||||
|
"rxjs": "~7.8.0",
|
||||||
|
"tslib": "^2.3.0",
|
||||||
|
"zone.js": "~0.13.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular-builders/custom-webpack": "^16.0.0",
|
||||||
|
"@angular-devkit/build-angular": "^16.1.4",
|
||||||
|
"@angular/cli": "~16.1.4",
|
||||||
|
"@angular/compiler-cli": "^16.1.0",
|
||||||
|
"@angular/localize": "^16.1.0",
|
||||||
|
"@types/file-saver": "^2.0.7",
|
||||||
|
"@types/jasmine": "~4.3.0",
|
||||||
|
"@types/leaflet": "^1.9.3",
|
||||||
|
"jasmine-core": "~4.6.0",
|
||||||
|
"karma": "~6.4.0",
|
||||||
|
"karma-chrome-launcher": "~3.2.0",
|
||||||
|
"karma-coverage": "~2.2.0",
|
||||||
|
"karma-jasmine": "~5.1.0",
|
||||||
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
|
"purgecss-webpack-plugin": "^5.0.0",
|
||||||
|
"typescript": "~5.1.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
frontend-roadreport-deploy/proxy.conf.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"/image": {
|
||||||
|
"target": "https://roadreport-bucket.s3.ap-southeast-1.amazonaws.com",
|
||||||
|
"secure": true,
|
||||||
|
"changeOrigin": true,
|
||||||
|
"logLevel": "debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
42
frontend-roadreport-deploy/src/app/app-routing.module.ts
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
import { RouterModule, Routes } from "@angular/router";
|
||||||
|
import { loginGuard } from "./cores/guards/login.guard";
|
||||||
|
import { authGuard } from "./cores/guards/auth.guard";
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: "",
|
||||||
|
pathMatch: "full",
|
||||||
|
redirectTo: "auth",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "auth",
|
||||||
|
loadChildren: () =>
|
||||||
|
import("./pages/auth/auth.module").then((m) => m.AuthModule),
|
||||||
|
title: "Dashboard - Login",
|
||||||
|
canActivate: [loginGuard],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "dashboard",
|
||||||
|
loadChildren: () =>
|
||||||
|
import("./pages/dashboard/dashboard.module").then(
|
||||||
|
(m) => m.DashboardModule
|
||||||
|
),
|
||||||
|
title: "Dashboard",
|
||||||
|
canActivate: [authGuard],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "**",
|
||||||
|
loadChildren: () =>
|
||||||
|
import("./pages/error-not-found/error-not-found.module").then(
|
||||||
|
(m) => m.ErrorNotFoundModule
|
||||||
|
),
|
||||||
|
title: "Halaman Tidak Ditemukan",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forRoot(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class AppRoutingModule {}
|
||||||
1
frontend-roadreport-deploy/src/app/app.component.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<router-outlet></router-outlet>
|
||||||
29
frontend-roadreport-deploy/src/app/app.component.spec.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
|
describe('AppComponent', () => {
|
||||||
|
beforeEach(() => TestBed.configureTestingModule({
|
||||||
|
imports: [RouterTestingModule],
|
||||||
|
declarations: [AppComponent]
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create the app', () => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
const app = fixture.componentInstance;
|
||||||
|
expect(app).toBeTruthy();
|
||||||
|
});
|
||||||
|
|
||||||
|
it(`should have as title 'road-report'`, () => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
const app = fixture.componentInstance;
|
||||||
|
expect(app.title).toEqual('road-report');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should render title', () => {
|
||||||
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
|
fixture.detectChanges();
|
||||||
|
const compiled = fixture.nativeElement as HTMLElement;
|
||||||
|
expect(compiled.querySelector('.content span')?.textContent).toContain('road-report app is running!');
|
||||||
|
});
|
||||||
|
});
|
||||||
16
frontend-roadreport-deploy/src/app/app.component.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Component } from "@angular/core";
|
||||||
|
import { NgbModalConfig } from "@ng-bootstrap/ng-bootstrap";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-root",
|
||||||
|
templateUrl: "./app.component.html",
|
||||||
|
styleUrls: ["./app.component.scss"],
|
||||||
|
})
|
||||||
|
export class AppComponent {
|
||||||
|
title = "road-report";
|
||||||
|
|
||||||
|
constructor(private modalConfig: NgbModalConfig) {
|
||||||
|
this.modalConfig.centered = true;
|
||||||
|
this.modalConfig.scrollable = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
54
frontend-roadreport-deploy/src/app/app.module.ts
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
import { LOCALE_ID, NgModule } from "@angular/core";
|
||||||
|
import { BrowserModule } from "@angular/platform-browser";
|
||||||
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||||
|
import { AppRoutingModule } from "./app-routing.module";
|
||||||
|
import { AppComponent } from "./app.component";
|
||||||
|
import { HttpClientModule } from "@angular/common/http";
|
||||||
|
import { JwtModule } from "@auth0/angular-jwt";
|
||||||
|
import { ToastrModule } from "ngx-toastr";
|
||||||
|
import { registerLocaleData } from "@angular/common";
|
||||||
|
import localeId from "@angular/common/locales/id";
|
||||||
|
import { HttpInterceptors } from "./cores/interceptors";
|
||||||
|
import { LightboxModule } from "ngx-lightbox";
|
||||||
|
import { FormsModule } from "@angular/forms";
|
||||||
|
|
||||||
|
registerLocaleData(localeId, "id");
|
||||||
|
|
||||||
|
export function tokenGetter(): any {
|
||||||
|
return localStorage.getItem("access_jwt_token");
|
||||||
|
}
|
||||||
|
|
||||||
|
export const allowedDomains = ["localhost", "pisdev.my.id"];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [AppComponent],
|
||||||
|
imports: [
|
||||||
|
LightboxModule,
|
||||||
|
BrowserModule,
|
||||||
|
BrowserAnimationsModule,
|
||||||
|
AppRoutingModule,
|
||||||
|
HttpClientModule,
|
||||||
|
JwtModule.forRoot({
|
||||||
|
config: {
|
||||||
|
tokenGetter,
|
||||||
|
allowedDomains,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
ToastrModule.forRoot({
|
||||||
|
timeOut: 2500,
|
||||||
|
positionClass: "toast-bottom-center",
|
||||||
|
preventDuplicates: true,
|
||||||
|
progressBar: true,
|
||||||
|
}),
|
||||||
|
FormsModule,
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
{
|
||||||
|
provide: LOCALE_ID,
|
||||||
|
useValue: "id-ID",
|
||||||
|
},
|
||||||
|
HttpInterceptors,
|
||||||
|
],
|
||||||
|
bootstrap: [AppComponent],
|
||||||
|
})
|
||||||
|
export class AppModule {}
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface UploadImage extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
filename: string;
|
||||||
|
file_type: string;
|
||||||
|
file_size: string;
|
||||||
|
category: string;
|
||||||
|
uploaded_ip: string;
|
||||||
|
folder: string;
|
||||||
|
rel_path: string;
|
||||||
|
abs_path: string;
|
||||||
|
upload_status: boolean;
|
||||||
|
link_status: boolean;
|
||||||
|
extra: null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class UploadImageService extends ApiService<UploadImage> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "upload-dumps";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { ExportLaporanById } from "./export-laporanByid.service";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ExportLaporanByIdStatus extends ApiService<ExportLaporanById> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
|
||||||
|
export interface ExportLaporanById extends Timestamp {
|
||||||
|
filename: string;
|
||||||
|
file_type: string;
|
||||||
|
file_size: number;
|
||||||
|
category: string;
|
||||||
|
folder: string;
|
||||||
|
rel_path: string;
|
||||||
|
abs_path: string;
|
||||||
|
uploader_ip: number;
|
||||||
|
upload_status: boolean;
|
||||||
|
link_status: boolean;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ExportLaporanByIdService extends ApiService<ExportLaporanById> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "report-list/export";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface Bahan extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
qty: number;
|
||||||
|
unit: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class BahanService extends ApiService<Bahan> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "inventory-list";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface Ringkasan {
|
||||||
|
DitindakLanjuti: number;
|
||||||
|
Selesai: number;
|
||||||
|
DalamProses: number;
|
||||||
|
Perbaikan: number;
|
||||||
|
Ditolak: number;
|
||||||
|
SemuaLaporan: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class RingkasanService extends ApiService<Ringkasan> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "report-list/count";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,59 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { User } from "../manage/user.service";
|
||||||
|
import {
|
||||||
|
Rating,
|
||||||
|
Schedule,
|
||||||
|
Segmens,
|
||||||
|
StatusReport,
|
||||||
|
Survey,
|
||||||
|
} from "../../interfaces/master";
|
||||||
|
import { BehaviorSubject, Observable } from "rxjs";
|
||||||
|
import { ObjectResponse } from "../../interfaces/api-object-response";
|
||||||
|
|
||||||
|
export interface Laporan extends Timestamp {
|
||||||
|
user_level: any;
|
||||||
|
user_type: any;
|
||||||
|
id: string;
|
||||||
|
user_id: string;
|
||||||
|
status_id: string;
|
||||||
|
note: string;
|
||||||
|
no_ticket: string;
|
||||||
|
assign_survey_to: string;
|
||||||
|
survey_status: boolean;
|
||||||
|
survey?: Survey;
|
||||||
|
status_report: StatusReport;
|
||||||
|
user: User;
|
||||||
|
survey_end_date: string;
|
||||||
|
survey_start_date: string;
|
||||||
|
schedule: Schedule;
|
||||||
|
segmens: Segmens[];
|
||||||
|
rating?: Rating;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class LaporanService extends ApiService<Laporan> {
|
||||||
|
private reportDetailsSubject = new BehaviorSubject<Laporan | null>(null);
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "report-list";
|
||||||
|
}
|
||||||
|
|
||||||
|
getData(
|
||||||
|
id: string | number,
|
||||||
|
query?: any
|
||||||
|
): Observable<ObjectResponse<Laporan>> {
|
||||||
|
const url = this.urlWithId(id);
|
||||||
|
const params = query ? this.helpers.generateParams(query) : {};
|
||||||
|
return this.http.get<ObjectResponse<Laporan>>(url, { params });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
// import { Injectable } from "@angular/core";
|
||||||
|
// import { ApiService } from "../../services/api.service";
|
||||||
|
// import { HttpClient } from "@angular/common/http";
|
||||||
|
// import { HelpersService } from "../../services/helpers.service";
|
||||||
|
// import { Laporan } from "./laporan.service";
|
||||||
|
|
||||||
|
// @Injectable({
|
||||||
|
// providedIn: "root",
|
||||||
|
// })
|
||||||
|
// export class LaporanService extends ApiService<Laporan> {
|
||||||
|
// constructor(
|
||||||
|
// public override http: HttpClient,
|
||||||
|
// public override helpers: HelpersService
|
||||||
|
// ) {
|
||||||
|
// super(http, helpers);
|
||||||
|
// this.endpoint = `report-list/quarter/4`;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { User } from "../manage/user.service";
|
||||||
|
import { Schedule, Segmens, StatusReport } from "../../interfaces/master";
|
||||||
|
|
||||||
|
export interface Rejected extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
user_id: string;
|
||||||
|
status_id: string;
|
||||||
|
note: string;
|
||||||
|
no_ticket: string;
|
||||||
|
status_report: StatusReport;
|
||||||
|
user: User;
|
||||||
|
schedule: Schedule;
|
||||||
|
segmens: Segmens[];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class RejectedLaporanService extends ApiService<Rejected> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = `rejected`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface MachineSegmenService extends Timestamp {}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class MachineSegmenService {
|
||||||
|
constructor(public http: HttpClient) {}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface ChangePassword extends Timestamp {
|
||||||
|
old_password: string;
|
||||||
|
new_password: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ChangePasswordService extends ApiService<ChangePassword> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "users/change-password";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface Faq extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
desc: string;
|
||||||
|
order: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class FaqService extends ApiService<Faq> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "faq";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { User } from "./user.service";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class SurveyorService extends ApiService<User> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "surveyor";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface User extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
desc: string;
|
||||||
|
order: number;
|
||||||
|
urole_id: string;
|
||||||
|
username: string;
|
||||||
|
fullname: string;
|
||||||
|
shortname: string;
|
||||||
|
email: string;
|
||||||
|
avatar: string;
|
||||||
|
note: string;
|
||||||
|
status: boolean;
|
||||||
|
is_ban: boolean;
|
||||||
|
google_id: string;
|
||||||
|
phone: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class UserService extends ApiService<User> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "users";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { AnalyticData, Segmen } from "../../interfaces/master";
|
||||||
|
|
||||||
|
export interface ReportSegmen extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
map_street_segmen_id: string;
|
||||||
|
user_type: string;
|
||||||
|
user_level: string;
|
||||||
|
segmen: Segmen;
|
||||||
|
analytic_data: AnalyticData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ReportSegmens extends ApiService<ReportSegmen> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "report-segmens";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface Peta extends Timestamp {
|
||||||
|
length: number;
|
||||||
|
id: string;
|
||||||
|
map_street_section_id: string;
|
||||||
|
map_street_id: string;
|
||||||
|
name: string;
|
||||||
|
order: number;
|
||||||
|
geojson: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class StreetSegmens extends ApiService<Peta> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "street-segmens";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface SubDistrict extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
province_id: number;
|
||||||
|
city_id: number;
|
||||||
|
district_id: number;
|
||||||
|
name: string;
|
||||||
|
type: string;
|
||||||
|
geojson: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class SubDistricService extends ApiService<SubDistrict> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "sub-district";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { User } from "../manage/user.service";
|
||||||
|
import { Segmens, StatusReport } from "../../interfaces/master";
|
||||||
|
|
||||||
|
export interface DetailPerbaikan extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
date_start: Date;
|
||||||
|
date_end: Date;
|
||||||
|
status: string;
|
||||||
|
note: string;
|
||||||
|
report: {
|
||||||
|
id: string;
|
||||||
|
user_id: string;
|
||||||
|
status_id: string;
|
||||||
|
note: string;
|
||||||
|
no_ticket: string;
|
||||||
|
status_report: StatusReport;
|
||||||
|
user: User;
|
||||||
|
segmens: Segmens[];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class DetailPerbaikanService extends ApiService<DetailPerbaikan> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "report-schedules/detail";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
export interface Maintenance extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
report_schedule_id: string;
|
||||||
|
segmen_id: string;
|
||||||
|
date: Date;
|
||||||
|
maintenance_by: string;
|
||||||
|
note: string;
|
||||||
|
photo_after: [
|
||||||
|
{
|
||||||
|
filename: string;
|
||||||
|
abs_path: string;
|
||||||
|
file_dump_id: string;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class MaintenanceService extends ApiService<Maintenance> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = "maintenanced";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { Segmens, StatusReport } from "../../interfaces/master";
|
||||||
|
import { User } from "../manage/user.service";
|
||||||
|
import { AuthService } from "../../services/auth.service";
|
||||||
|
|
||||||
|
export interface Perbaikan extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
date_start: Date;
|
||||||
|
date_end: Date;
|
||||||
|
status: string;
|
||||||
|
note: string;
|
||||||
|
report: {
|
||||||
|
id: string;
|
||||||
|
user_id: string;
|
||||||
|
status_id: string;
|
||||||
|
note: string;
|
||||||
|
no_ticket: string;
|
||||||
|
status_report: StatusReport;
|
||||||
|
user: User;
|
||||||
|
segmens: Segmens[];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class PerbaikanService extends ApiService<Perbaikan> {
|
||||||
|
constructor(
|
||||||
|
private auth: AuthService,
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
|
||||||
|
if (auth.getLoggedUser().role.code == "PNGL") {
|
||||||
|
this.endpoint = `report-schedules/pengelola/${auth.getLoggedUser().id}`;
|
||||||
|
} else {
|
||||||
|
this.endpoint = `report-schedules`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class RekapitulasiService extends ApiService<any> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { Survey } from "../../interfaces/master";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class PostSurveyService extends ApiService<Survey> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = `survey`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { Timestamp } from "../../interfaces/timestamp";
|
||||||
|
import { ApiService } from "../../services/api.service";
|
||||||
|
import { HelpersService } from "../../services/helpers.service";
|
||||||
|
import { Schedule, Segmens, StatusReport } from "../../interfaces/master";
|
||||||
|
import { User } from "../manage/user.service";
|
||||||
|
import { AuthService } from "../../services/auth.service";
|
||||||
|
import { Router } from "@angular/router";
|
||||||
|
|
||||||
|
export interface Surveyor extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
user_id: string;
|
||||||
|
status_id: string;
|
||||||
|
note: string;
|
||||||
|
no_ticket: string;
|
||||||
|
survey_status: boolean;
|
||||||
|
survey_end_date: string;
|
||||||
|
survey_start_date: string;
|
||||||
|
status_report: StatusReport;
|
||||||
|
user: User;
|
||||||
|
schedule: Schedule;
|
||||||
|
segmens: Segmens[];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class SurveyorService extends ApiService<Surveyor> {
|
||||||
|
constructor(
|
||||||
|
public override http: HttpClient,
|
||||||
|
public override helpers: HelpersService,
|
||||||
|
private router: Router,
|
||||||
|
private auth: AuthService
|
||||||
|
) {
|
||||||
|
super(http, helpers);
|
||||||
|
this.endpoint = `report-list/surveyor/${auth.getLoggedUser().id}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class JsonDataService {
|
||||||
|
constructor(private http: HttpClient) {}
|
||||||
|
|
||||||
|
getJsonData(): Observable<any> {
|
||||||
|
return this.http.get<any>("assets/graf-tes.json");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,161 @@
|
||||||
|
import { AfterViewInit, Component, OnDestroy, OnInit } from "@angular/core";
|
||||||
|
import { HTTPQuery } from "../interfaces/http-query";
|
||||||
|
import { Subject, debounceTime, takeUntil } from "rxjs";
|
||||||
|
import { FormControl } from "@angular/forms";
|
||||||
|
import { HelpersService } from "../services/helpers.service";
|
||||||
|
import { LoadingService } from "../services/loading.service";
|
||||||
|
import { ApiService } from "../services/api.service";
|
||||||
|
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
||||||
|
import { ConfirmationModalComponent } from "src/app/pages/dashboard/components/confirmation-modal/confirmation-modal.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "base-crud",
|
||||||
|
template: "",
|
||||||
|
})
|
||||||
|
export class BaseCrudComponent<T> implements OnInit, OnDestroy, AfterViewInit {
|
||||||
|
pageTitle = "";
|
||||||
|
|
||||||
|
queryLimit = 10;
|
||||||
|
queryPage = 1;
|
||||||
|
querySort = "-created_at";
|
||||||
|
queries: HTTPQuery = {};
|
||||||
|
|
||||||
|
searchFields = "";
|
||||||
|
searchForm = new FormControl();
|
||||||
|
searchSubs$ = new Subject<void>();
|
||||||
|
|
||||||
|
dataSource: T[] = [];
|
||||||
|
dataSourceLength = 0;
|
||||||
|
dataSourceTotal = 0;
|
||||||
|
dataSourceSubs$ = new Subject<void>();
|
||||||
|
|
||||||
|
pageSizeOptions = [5, 10, 25, 50];
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
public helpers: HelpersService,
|
||||||
|
public loading: LoadingService,
|
||||||
|
public api: ApiService<T>,
|
||||||
|
public modal: NgbModal
|
||||||
|
) {
|
||||||
|
this.queries = {
|
||||||
|
limit: this.queryLimit,
|
||||||
|
page: this.queryPage,
|
||||||
|
sort: this.querySort,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.getAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
ngAfterViewInit(): void {
|
||||||
|
this.searchForm.valueChanges
|
||||||
|
.pipe(debounceTime(1000), takeUntil(this.searchSubs$))
|
||||||
|
.subscribe((value) => {
|
||||||
|
if (value.trim().length >= 3 && !value.startsWith(" ")) {
|
||||||
|
this.queries = {
|
||||||
|
...this.queries,
|
||||||
|
search: {
|
||||||
|
fields: this.searchFields,
|
||||||
|
value: value,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
} else if (value.trim().length === 0 && !value.startsWith(" ")) {
|
||||||
|
delete this.queries["search"];
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.getAll(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
this.dataSourceSubs$.next();
|
||||||
|
this.dataSourceSubs$.complete();
|
||||||
|
|
||||||
|
this.searchSubs$.next();
|
||||||
|
this.searchSubs$.complete();
|
||||||
|
|
||||||
|
this.loading.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
getAll(isTotalChange = true): void {
|
||||||
|
this.loading.show();
|
||||||
|
this.api
|
||||||
|
.getAll(this.queries)
|
||||||
|
.pipe(takeUntil(this.dataSourceSubs$))
|
||||||
|
.subscribe({
|
||||||
|
next: ({ data, total }) => {
|
||||||
|
this.loading.hide();
|
||||||
|
this.dataSource = data;
|
||||||
|
this.dataSourceLength = total;
|
||||||
|
if (isTotalChange) this.dataSourceTotal = total;
|
||||||
|
},
|
||||||
|
error: () => {
|
||||||
|
this.loading.hide();
|
||||||
|
this.helpers.toast("error", `Gagal mengambil data`);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
onPageSizeChange(pageSize: Event): void {
|
||||||
|
const value = parseInt((pageSize.target as HTMLInputElement).value);
|
||||||
|
this.queryLimit = value;
|
||||||
|
this.queries = {
|
||||||
|
...this.queries,
|
||||||
|
limit: this.queryLimit,
|
||||||
|
page: this.queryPage,
|
||||||
|
};
|
||||||
|
this.getAll(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
onPaginateChange(page: any): void {
|
||||||
|
this.queryPage = page;
|
||||||
|
this.queries = {
|
||||||
|
...this.queries,
|
||||||
|
page: this.queryPage,
|
||||||
|
};
|
||||||
|
this.getAll(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
parseNumber(value: number): number {
|
||||||
|
return this.queries["page"] && this.queries["limit"]
|
||||||
|
? value + 1 + (this.queries["page"] - 1) * this.queries["limit"]
|
||||||
|
: value;
|
||||||
|
}
|
||||||
|
|
||||||
|
onDeleteData(
|
||||||
|
id: string | number,
|
||||||
|
subject: string | null | undefined = null
|
||||||
|
): void {
|
||||||
|
const modalRef = this.modal.open(ConfirmationModalComponent, {
|
||||||
|
size: "sm",
|
||||||
|
});
|
||||||
|
modalRef.componentInstance.modalType = 2;
|
||||||
|
modalRef.componentInstance.message = `Anda yakin ingin menghapus ${
|
||||||
|
subject ? `<span class='fw-medium text-danger'>${subject}</span>` : "data"
|
||||||
|
} ?`;
|
||||||
|
modalRef.result.then(
|
||||||
|
(result) => {
|
||||||
|
if (result) {
|
||||||
|
this.api.delete(id).subscribe({
|
||||||
|
next: () => {
|
||||||
|
this.helpers.toast(
|
||||||
|
"success",
|
||||||
|
`Berhasil menghapus ${subject ?? "data"}`
|
||||||
|
);
|
||||||
|
this.getAll(true);
|
||||||
|
},
|
||||||
|
error: () => {
|
||||||
|
this.helpers.toast(
|
||||||
|
"error",
|
||||||
|
`Gagal menghapus data ${subject} ?? 'data'`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
() => {}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { AbstractControl, ValidationErrors } from "@angular/forms";
|
||||||
|
|
||||||
|
export class CantContainWhiteSpaceValidator {
|
||||||
|
static cantContainSpace(control: AbstractControl): ValidationErrors | null {
|
||||||
|
if (control?.value) {
|
||||||
|
if ((control.value as string).indexOf(" ") >= 0) {
|
||||||
|
return { cantContainSpace: true };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { AbstractControl, ValidationErrors } from "@angular/forms";
|
||||||
|
|
||||||
|
export class EmailValidator {
|
||||||
|
static emailValidation(control: AbstractControl): ValidationErrors | null {
|
||||||
|
const allowedDomains = ["gmail.com"];
|
||||||
|
|
||||||
|
// if (control?.value) {
|
||||||
|
// const email = control.value as string;
|
||||||
|
// const domain = email.split("@")[1];
|
||||||
|
// if (!allowedDomains.includes(domain)) {
|
||||||
|
// return { emailValidation: true };
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
if (control?.value) {
|
||||||
|
const email = control.value as string;
|
||||||
|
const domain = email.split("@")[1];
|
||||||
|
if (domain && (domain.endsWith(".com") || domain.endsWith(".co"))) {
|
||||||
|
return null; // Email dengan domain .com atau .co diizinkan
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return { emailValidation: true };
|
||||||
|
// return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { AbstractControl, ValidationErrors } from "@angular/forms";
|
||||||
|
|
||||||
|
export class WhiteSpaceValidator {
|
||||||
|
static noWhiteSpace(control: AbstractControl): ValidationErrors | null {
|
||||||
|
if (control?.value) {
|
||||||
|
const trimmedValue = control.value.trim();
|
||||||
|
if (trimmedValue.length !== control.value.length) {
|
||||||
|
return { noWhiteSpace: true };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { CanActivateFn, Router } from "@angular/router";
|
||||||
|
import { AuthService } from "../services/auth.service";
|
||||||
|
import { inject } from "@angular/core";
|
||||||
|
import { HelpersService } from "../services/helpers.service";
|
||||||
|
|
||||||
|
export const authGuard: CanActivateFn = (route, state) => {
|
||||||
|
const auth = inject(AuthService);
|
||||||
|
const router = inject(Router);
|
||||||
|
const helpers = inject(HelpersService);
|
||||||
|
|
||||||
|
if (!auth.isAuthenticated()) {
|
||||||
|
auth.removeToken();
|
||||||
|
router.navigate(["/auth"], {
|
||||||
|
queryParams: {
|
||||||
|
url: state.url,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
helpers.toast("error", "Silakan login terlebih dahulu");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { CanActivateFn, Router } from "@angular/router";
|
||||||
|
import { AuthService } from "../services/auth.service";
|
||||||
|
import { inject } from "@angular/core";
|
||||||
|
|
||||||
|
export const loginGuard: CanActivateFn = (route, state) => {
|
||||||
|
const auth = inject(AuthService);
|
||||||
|
const router = inject(Router);
|
||||||
|
|
||||||
|
if (auth.isAuthenticated()) {
|
||||||
|
router.navigate(["/dashboard"]);
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
auth.removeToken();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
import {
|
||||||
|
ActivatedRouteSnapshot,
|
||||||
|
CanActivateFn,
|
||||||
|
Router,
|
||||||
|
RouterStateSnapshot,
|
||||||
|
} from "@angular/router";
|
||||||
|
import { AuthService } from "../services/auth.service";
|
||||||
|
import { inject } from "@angular/core";
|
||||||
|
|
||||||
|
export const HasRoleGuard: CanActivateFn = (
|
||||||
|
route: ActivatedRouteSnapshot,
|
||||||
|
state: RouterStateSnapshot
|
||||||
|
) => {
|
||||||
|
const auth = inject(AuthService);
|
||||||
|
const router = inject(Router);
|
||||||
|
|
||||||
|
const roleUser = auth.getLoggedUser().role.code;
|
||||||
|
const userAccess = route.data["access_role"];
|
||||||
|
if (userAccess.includes(roleUser)) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
router.navigate(["**"]);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { HttpRequest, HttpHandler, HttpEvent } from "@angular/common/http";
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ApiInterceptor {
|
||||||
|
baseApi = "https://api-roadreport.pisdev.my.id";
|
||||||
|
|
||||||
|
intercept(
|
||||||
|
request: HttpRequest<unknown>,
|
||||||
|
next: HttpHandler
|
||||||
|
): Observable<HttpEvent<unknown>> {
|
||||||
|
const match = /^(\/(api|auth).+)/;
|
||||||
|
const clientReq = request.clone({
|
||||||
|
url: request.url.replace(match, `${this.baseApi}$1`),
|
||||||
|
});
|
||||||
|
|
||||||
|
return next.handle(clientReq);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { AuthService } from "../services/auth.service";
|
||||||
|
import { HttpEvent, HttpHandler, HttpRequest } from "@angular/common/http";
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AuthInterceptor {
|
||||||
|
constructor(private auth: AuthService) {}
|
||||||
|
|
||||||
|
intercept(
|
||||||
|
req: HttpRequest<any>,
|
||||||
|
next: HttpHandler
|
||||||
|
): Observable<HttpEvent<any>> {
|
||||||
|
if (!req.url.endsWith("login")) {
|
||||||
|
req = req.clone({
|
||||||
|
setHeaders: {
|
||||||
|
Authorization: `Bearer ${this.auth.getToken()}`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return next.handle(req);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import {
|
||||||
|
HttpRequest,
|
||||||
|
HttpHandler,
|
||||||
|
HttpEvent,
|
||||||
|
HttpErrorResponse,
|
||||||
|
} from "@angular/common/http";
|
||||||
|
import { Observable, catchError, retry, throwError } from "rxjs";
|
||||||
|
import { AuthService } from "../services/auth.service";
|
||||||
|
import { Router } from "@angular/router";
|
||||||
|
import { HelpersService } from "../services/helpers.service";
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ErrorInterceptor {
|
||||||
|
constructor(
|
||||||
|
private auth: AuthService,
|
||||||
|
private router: Router,
|
||||||
|
private helpers: HelpersService
|
||||||
|
) {}
|
||||||
|
|
||||||
|
intercept(
|
||||||
|
request: HttpRequest<unknown>,
|
||||||
|
next: HttpHandler
|
||||||
|
): Observable<HttpEvent<unknown>> {
|
||||||
|
return next.handle(request).pipe(
|
||||||
|
retry(1),
|
||||||
|
catchError((error: HttpErrorResponse) => {
|
||||||
|
if (error.status === 401) {
|
||||||
|
this.auth.removeToken();
|
||||||
|
this.router.navigate(["/auth"], {
|
||||||
|
queryParams: { url: this.router.url },
|
||||||
|
});
|
||||||
|
this.helpers.toast("error", "Sesi Anda telah berakhir");
|
||||||
|
}
|
||||||
|
let message = "";
|
||||||
|
if (error.error instanceof ErrorEvent) {
|
||||||
|
// handle client-side error
|
||||||
|
message = `Error: ${error.error.message}`;
|
||||||
|
} else {
|
||||||
|
// handle server-side error
|
||||||
|
message = `Error Status: ${error.status}\nMessage: ${error.message}`;
|
||||||
|
}
|
||||||
|
return throwError(() => error);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { HTTP_INTERCEPTORS } from "@angular/common/http";
|
||||||
|
import { ApiInterceptor } from "./api.interceptor";
|
||||||
|
import { AuthInterceptor } from "./auth.interceptor";
|
||||||
|
import { ErrorInterceptor } from "./error.interceptor";
|
||||||
|
|
||||||
|
export const HttpInterceptors = [
|
||||||
|
{ provide: HTTP_INTERCEPTORS, useClass: ApiInterceptor, multi: true },
|
||||||
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
|
||||||
|
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
|
||||||
|
];
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
export interface ArrayResponse<T> {
|
||||||
|
data: T[];
|
||||||
|
page: number;
|
||||||
|
total: number;
|
||||||
|
perPage: number;
|
||||||
|
lastPage: number;
|
||||||
|
nextPage: string;
|
||||||
|
previousPage: string;
|
||||||
|
statusCode: number;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
export interface ObjectResponse<T> {
|
||||||
|
report: any;
|
||||||
|
data: T;
|
||||||
|
statusCode: number;
|
||||||
|
message: string;
|
||||||
|
errors: any;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
export interface HTTPQuery {
|
||||||
|
page?: number;
|
||||||
|
limit?: number;
|
||||||
|
sort?: string;
|
||||||
|
fields?: string;
|
||||||
|
embed?: string;
|
||||||
|
search?: any;
|
||||||
|
filter?: any;
|
||||||
|
operation?: string;
|
||||||
|
embedOptions?: any;
|
||||||
|
}
|
||||||
103
frontend-roadreport-deploy/src/app/cores/interfaces/master.ts
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
import { Timestamp } from "./timestamp";
|
||||||
|
|
||||||
|
export interface Segmen {
|
||||||
|
id: string;
|
||||||
|
map_street_section_id: string;
|
||||||
|
map_street_id: string;
|
||||||
|
name: string;
|
||||||
|
center_point: string;
|
||||||
|
length: number;
|
||||||
|
order: number;
|
||||||
|
geojson: string;
|
||||||
|
photos: Photos[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Segmens {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
map_street_segmen_id: string;
|
||||||
|
user_type: string;
|
||||||
|
user_level: string;
|
||||||
|
segmen: Segmen;
|
||||||
|
photos: Photos[];
|
||||||
|
analytic_data?: AnalyticData;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AnalyticData {
|
||||||
|
id: string;
|
||||||
|
report_segmen_id: string;
|
||||||
|
type_segmen_system: string;
|
||||||
|
level_segmen_system: string;
|
||||||
|
type_segmen_admin: string;
|
||||||
|
level_segmen_admin: string;
|
||||||
|
confidence: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Survey extends Timestamp {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
created_by: string;
|
||||||
|
date: Date;
|
||||||
|
tingkat_kerusakan: string;
|
||||||
|
tipe_kerusakan: string;
|
||||||
|
kedalaman_lubang: string;
|
||||||
|
jenis_material: string;
|
||||||
|
masukan_material: string;
|
||||||
|
length: number;
|
||||||
|
width: number;
|
||||||
|
note: string;
|
||||||
|
photos: Photo[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Photo {
|
||||||
|
id: string;
|
||||||
|
survey_id: string;
|
||||||
|
filename: string;
|
||||||
|
abs_path: string;
|
||||||
|
file_dump_id: null;
|
||||||
|
created_at: Date;
|
||||||
|
updated_at: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StatusReport {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Schedule {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
date_start: Date;
|
||||||
|
status: string;
|
||||||
|
note: string;
|
||||||
|
date_end: Date;
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Photos {
|
||||||
|
id: string;
|
||||||
|
report_segmen_id: string;
|
||||||
|
filename: string;
|
||||||
|
abs_path: string;
|
||||||
|
file_dump_id: string;
|
||||||
|
created_at: Date;
|
||||||
|
updated_at: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CenterPoint {
|
||||||
|
type: string;
|
||||||
|
coordinates: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Rating {
|
||||||
|
id: string;
|
||||||
|
report_id: string;
|
||||||
|
rate: number;
|
||||||
|
comment: string;
|
||||||
|
created_at: Date;
|
||||||
|
updated_at: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PredictRoad {
|
||||||
|
predicted_label: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
export interface Timestamp {
|
||||||
|
created_at?: Date;
|
||||||
|
updated_at?: Date;
|
||||||
|
deleted_at?: Date;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Pipe, PipeTransform } from "@angular/core";
|
||||||
|
|
||||||
|
@Pipe({ name: "removeTrailingZero", standalone: true })
|
||||||
|
export class RemoveTrailingZeroPipe implements PipeTransform {
|
||||||
|
transform(value: number): string {
|
||||||
|
const roundedValue = Math.round(value * 100) / 100; // Round the number to two decimal places
|
||||||
|
const stringValue = roundedValue.toString();
|
||||||
|
return stringValue.endsWith(".00") ? stringValue.slice(0, -3) : stringValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import {
|
||||||
|
ActivatedRoute,
|
||||||
|
ActivatedRouteSnapshot,
|
||||||
|
Resolve,
|
||||||
|
RouterStateSnapshot,
|
||||||
|
} from "@angular/router";
|
||||||
|
import { Observable, of } from "rxjs";
|
||||||
|
import {
|
||||||
|
Laporan,
|
||||||
|
LaporanService,
|
||||||
|
} from "../api-services/laporan/laporan.service";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ReportResolver implements Resolve<Laporan> {
|
||||||
|
constructor(
|
||||||
|
private api: LaporanService,
|
||||||
|
private activatedRoute: ActivatedRoute
|
||||||
|
) {}
|
||||||
|
resolve(
|
||||||
|
route: ActivatedRouteSnapshot,
|
||||||
|
state: RouterStateSnapshot
|
||||||
|
): Laporan | Observable<Laporan> | Promise<Laporan> {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
import { HttpClient } from "@angular/common/http";
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { HelpersService } from "./helpers.service";
|
||||||
|
import { ObjectResponse } from "../interfaces/api-object-response";
|
||||||
|
import { ArrayResponse } from "../interfaces/api-array-response";
|
||||||
|
import { HTTPQuery } from "../interfaces/http-query";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class ApiService<T> {
|
||||||
|
private baseApiUrl = "/api";
|
||||||
|
endpoint = "";
|
||||||
|
query: HTTPQuery = {};
|
||||||
|
|
||||||
|
constructor(public http: HttpClient, public helpers: HelpersService) {}
|
||||||
|
|
||||||
|
url(): string {
|
||||||
|
return `${this.baseApiUrl}/${this.endpoint}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
urlWithId(id: string | number): string {
|
||||||
|
return `${this.baseApiUrl}/${this.endpoint}/${id}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
urlCustom(c: string): string {
|
||||||
|
return `${this.baseApiUrl}/${this.endpoint}/${c}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
urlArray(c: string[]): string {
|
||||||
|
return `${this.baseApiUrl}/${this.endpoint}/${c.join("/")}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
insert(data: any): Observable<ObjectResponse<T>> {
|
||||||
|
const url = this.url();
|
||||||
|
return this.http.post<ObjectResponse<T>>(url, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
getAll(query?: HTTPQuery): Observable<ArrayResponse<T>> {
|
||||||
|
const url = this.url();
|
||||||
|
const params = query ? this.helpers.generateParams(query) : {};
|
||||||
|
return this.http.get<ArrayResponse<T>>(url, { params });
|
||||||
|
}
|
||||||
|
|
||||||
|
getById(
|
||||||
|
id: string | number,
|
||||||
|
query?: HTTPQuery
|
||||||
|
): Observable<ObjectResponse<T>> {
|
||||||
|
const url = this.urlWithId(id);
|
||||||
|
const params = query ? this.helpers.generateParams(query) : {};
|
||||||
|
return this.http.get<ObjectResponse<T>>(url, { params });
|
||||||
|
}
|
||||||
|
|
||||||
|
update(id: string | number, data: any): Observable<ObjectResponse<T>> {
|
||||||
|
const url = this.urlWithId(id);
|
||||||
|
return this.http.put<ObjectResponse<T>>(url, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
delete(id: string | number): Observable<ObjectResponse<T>> {
|
||||||
|
const url = this.urlWithId(id);
|
||||||
|
return this.http.delete<ObjectResponse<T>>(url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,131 @@
|
||||||
|
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { Router } from "@angular/router";
|
||||||
|
import { JwtHelperService } from "@auth0/angular-jwt";
|
||||||
|
import { Buffer } from "buffer";
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { HelpersService } from "./helpers.service";
|
||||||
|
|
||||||
|
export interface LoginResponse {
|
||||||
|
data: any;
|
||||||
|
statusCode: number;
|
||||||
|
message: string;
|
||||||
|
errors: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LoginPayload {
|
||||||
|
username: string;
|
||||||
|
password: string;
|
||||||
|
remember_me: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LogoutResponse {
|
||||||
|
data: any;
|
||||||
|
statusCode: number;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class AuthService {
|
||||||
|
protected token = "access_token";
|
||||||
|
protected jwtToken = "access_jwt_token";
|
||||||
|
protected authURL = "/auth/login";
|
||||||
|
protected logoutURL = "/logout";
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private http: HttpClient,
|
||||||
|
private router: Router,
|
||||||
|
private jwtHelper: JwtHelperService,
|
||||||
|
private helpers: HelpersService
|
||||||
|
) {}
|
||||||
|
|
||||||
|
btoa(data: string): string {
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
return this.btoaUtf8(data);
|
||||||
|
} else {
|
||||||
|
const buffer = Buffer.from(data, "binary");
|
||||||
|
return buffer.toString("base64");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
btoaUtf8(data: string): string {
|
||||||
|
const utf8Data = encodeURIComponent(data).replace(
|
||||||
|
/%([0-9A-F]{2})/g,
|
||||||
|
(_, p1) => String.fromCharCode(parseInt(p1, 16))
|
||||||
|
);
|
||||||
|
return window.btoa(utf8Data);
|
||||||
|
}
|
||||||
|
|
||||||
|
login({
|
||||||
|
username,
|
||||||
|
password,
|
||||||
|
remember_me,
|
||||||
|
}: LoginPayload): Observable<LoginResponse> {
|
||||||
|
const auth = "Basic " + this.btoa(`${username}:${password}`);
|
||||||
|
const headers = new HttpHeaders().append("Authorization", auth);
|
||||||
|
const url = this.authURL;
|
||||||
|
return this.http.post<LoginResponse>(url, { remember_me }, { headers });
|
||||||
|
}
|
||||||
|
|
||||||
|
setToken(token: string): void {
|
||||||
|
localStorage.setItem(this.token, token);
|
||||||
|
}
|
||||||
|
|
||||||
|
getToken(): string {
|
||||||
|
return localStorage.getItem(this.token) ?? "";
|
||||||
|
}
|
||||||
|
|
||||||
|
setJwtToken(jwtToken: string): void {
|
||||||
|
localStorage.setItem(this.jwtToken, jwtToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
getJwtToken(): string {
|
||||||
|
return localStorage.getItem(this.jwtToken) ?? "";
|
||||||
|
}
|
||||||
|
|
||||||
|
removeToken(): void {
|
||||||
|
localStorage.removeItem(this.token);
|
||||||
|
localStorage.removeItem(this.jwtToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
isAuthenticated(): boolean {
|
||||||
|
return !this.jwtHelper.isTokenExpired(this.getJwtToken());
|
||||||
|
}
|
||||||
|
|
||||||
|
authRedirect() {
|
||||||
|
this.removeToken();
|
||||||
|
this.router.navigate(["auth"], {
|
||||||
|
queryParams: { url: this.router.url },
|
||||||
|
});
|
||||||
|
this.helpers.toast("error", "Silahkan login terlebih dahulu");
|
||||||
|
}
|
||||||
|
|
||||||
|
getLoggedUser(jwt = null): any {
|
||||||
|
if (!this.isAuthenticated()) {
|
||||||
|
this.authRedirect();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const token = jwt ?? this.getJwtToken();
|
||||||
|
const decodedToken = this.jwtHelper.decodeToken<any>(token);
|
||||||
|
if (!decodedToken) {
|
||||||
|
this.authRedirect();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return decodedToken.user;
|
||||||
|
}
|
||||||
|
|
||||||
|
logout(): void {
|
||||||
|
this.http
|
||||||
|
.post("https://api-roadreport.pisdev.my.id/auth/logout", {})
|
||||||
|
.subscribe(() => {
|
||||||
|
if (!this.getLoggedUser()) return;
|
||||||
|
this.removeToken();
|
||||||
|
this.router.navigate(["auth"]);
|
||||||
|
});
|
||||||
|
console.log("tes");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,139 @@
|
||||||
|
import { HttpParams } from "@angular/common/http";
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import * as dayjs from "dayjs";
|
||||||
|
import * as relativeTime from "dayjs/plugin/relativeTime";
|
||||||
|
import "dayjs/locale/id";
|
||||||
|
import { ToastrService } from "ngx-toastr";
|
||||||
|
import { FormGroup } from "@angular/forms";
|
||||||
|
import { RouterStateSnapshot } from "@angular/router";
|
||||||
|
import { HTTPQuery } from "../interfaces/http-query";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class HelpersService {
|
||||||
|
constructor(private toastr: ToastrService) {
|
||||||
|
dayjs.locale("id");
|
||||||
|
}
|
||||||
|
|
||||||
|
toHttpParams(query: any, params: HttpParams, state: string): HttpParams {
|
||||||
|
const attributes = Object.keys(query);
|
||||||
|
|
||||||
|
if (attributes.length) {
|
||||||
|
if (state === "filter") {
|
||||||
|
attributes.forEach((attribute) => {
|
||||||
|
const keys = Object.keys(query[attribute]);
|
||||||
|
|
||||||
|
if (keys.length) {
|
||||||
|
keys.forEach((key) => {
|
||||||
|
params = params.set(
|
||||||
|
`${attribute}[${key}]`,
|
||||||
|
query[attribute][key]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
params = params.set(`search[${query.fields}]`, query.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (query.operation) {
|
||||||
|
params = params.set("operation", query.operation);
|
||||||
|
}
|
||||||
|
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
generateParams(query: HTTPQuery): HttpParams {
|
||||||
|
const {
|
||||||
|
page,
|
||||||
|
limit,
|
||||||
|
sort,
|
||||||
|
fields,
|
||||||
|
embed,
|
||||||
|
search,
|
||||||
|
filter,
|
||||||
|
operation,
|
||||||
|
embedOptions,
|
||||||
|
} = query;
|
||||||
|
|
||||||
|
let params = new HttpParams();
|
||||||
|
|
||||||
|
if (page != null && page > -1) {
|
||||||
|
params = params.set("page", page.toString());
|
||||||
|
}
|
||||||
|
if (limit != null && limit > -1) {
|
||||||
|
params = params.set("limit", limit.toString());
|
||||||
|
}
|
||||||
|
if (sort) {
|
||||||
|
params = params.set("sort", sort);
|
||||||
|
}
|
||||||
|
if (fields) {
|
||||||
|
params = params.set("fields", fields);
|
||||||
|
}
|
||||||
|
if (embed) {
|
||||||
|
params = params.set("embed", embed);
|
||||||
|
}
|
||||||
|
if (search) {
|
||||||
|
params = this.toHttpParams(search, params, "search");
|
||||||
|
}
|
||||||
|
if (filter) {
|
||||||
|
params = this.toHttpParams(filter, params, "filter");
|
||||||
|
}
|
||||||
|
if (operation) {
|
||||||
|
params = params.set("operation", operation);
|
||||||
|
}
|
||||||
|
if (embedOptions && typeof embedOptions === "object") {
|
||||||
|
embedOptions.forEach((option: any) => {
|
||||||
|
if (option.embed) {
|
||||||
|
if (option.fields) {
|
||||||
|
params = params.set(`${option.embed}.fields`, option.fields);
|
||||||
|
}
|
||||||
|
if (option.sort) {
|
||||||
|
params = params.set(`${option.embed}.sort`, option.sort);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
toast(type: string, message: string) {
|
||||||
|
if (type === "success") {
|
||||||
|
this.toastr.success(message);
|
||||||
|
} else if (type === "error") {
|
||||||
|
this.toastr.error(message);
|
||||||
|
} else {
|
||||||
|
this.toastr.info(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
isInvalid(form: FormGroup, control: string): boolean {
|
||||||
|
return (
|
||||||
|
(form.get(control)?.invalid &&
|
||||||
|
(form.get(control)?.dirty || form.get(control)?.touched)) ||
|
||||||
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
hasError(form: FormGroup, control: string, error: string): boolean {
|
||||||
|
return (
|
||||||
|
(form.get(control)?.invalid &&
|
||||||
|
(form.get(control)?.dirty || form.get(control)?.touched) &&
|
||||||
|
form.get(control)?.hasError(error)) ||
|
||||||
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
previousUrl(state: RouterStateSnapshot) {
|
||||||
|
const splited = state.url.split("/");
|
||||||
|
return splited.splice(0, splited.length - 1).join("/");
|
||||||
|
}
|
||||||
|
|
||||||
|
timeAgo(date: Date): string {
|
||||||
|
dayjs.extend(relativeTime);
|
||||||
|
return dayjs(date).fromNow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { BehaviorSubject } from "rxjs";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root",
|
||||||
|
})
|
||||||
|
export class LoadingService {
|
||||||
|
private loading$ = new BehaviorSubject<boolean>(false);
|
||||||
|
|
||||||
|
isLoading() {
|
||||||
|
return this.loading$.asObservable();
|
||||||
|
}
|
||||||
|
|
||||||
|
show() {
|
||||||
|
this.loading$.next(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
hide() {
|
||||||
|
this.loading$.next(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,116 @@
|
||||||
|
<div class="row h-100 mx-0">
|
||||||
|
<div
|
||||||
|
class="col-lg-7 d-none d-lg-block bg-primary p-5 text-white position-relative overflow-hidden"
|
||||||
|
>
|
||||||
|
<div class="position-relative z-1">
|
||||||
|
<img
|
||||||
|
class="img-fluid mb-4 pe-none"
|
||||||
|
src="assets/images/batu_city_logo.png"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
<h1 class="display-1 mb-4 fw-bold">Road<br />Report</h1>
|
||||||
|
<h2 class="h5 mb-0 fw-medium">
|
||||||
|
Sistem Pelaporan Kerusakan Lokasi<br />Dinas PUPR Kota Batu
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<img
|
||||||
|
class="position-absolute bottom-0 z-0 pe-none"
|
||||||
|
style="right: -1.75rem"
|
||||||
|
src="assets/images/login_accent.png"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-5 py-5">
|
||||||
|
<div class="h-100 d-flex flex-column align-items-center">
|
||||||
|
<div class="mx-auto mt-auto mb-3 pt-3" style="width: min(100%, 380px)">
|
||||||
|
<div class="text-center mb-5">
|
||||||
|
<h1 class="h4 fw-semibold mb-2">Selamat Datang</h1>
|
||||||
|
<p class="mb-0 text-body-tertiary">
|
||||||
|
Masukan username dan kata sandi anda untuk masuk ke dalam dashboard
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="p-4 border rounded-3"
|
||||||
|
style="box-shadow: 6px 38px 48px 0px rgba(0, 0, 0, 0.08)"
|
||||||
|
>
|
||||||
|
<h5 class="fw-semibold text-center mb-4">Masuk</h5>
|
||||||
|
|
||||||
|
<form [formGroup]="form" (ngSubmit)="onSubmit()">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label" for="username">Email/Username</label>
|
||||||
|
<input
|
||||||
|
class="form-control"
|
||||||
|
type="text"
|
||||||
|
id="username"
|
||||||
|
formControlName="username"
|
||||||
|
placeholder="Masukan E-mail/Username"
|
||||||
|
autocomplete="username"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label" for="password">Password</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input
|
||||||
|
class="form-control"
|
||||||
|
[type]="isShowPassword ? 'text' : 'password'"
|
||||||
|
id="password"
|
||||||
|
formControlName="password"
|
||||||
|
placeholder="Masukan Kata Sandi"
|
||||||
|
autocomplete="off"
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
class="btn btn-outline-secondary"
|
||||||
|
type="button"
|
||||||
|
(click)="isShowPassword = !isShowPassword"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bi"
|
||||||
|
[ngClass]="isShowPassword ? 'bi-eye-slash' : 'bi-eye'"
|
||||||
|
></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-check mb-3 d-flex justify-content-between">
|
||||||
|
<div class="rememberMe-group">
|
||||||
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
id="rememberMe"
|
||||||
|
formControlName="remember_me"
|
||||||
|
autocomplete="off"
|
||||||
|
/>
|
||||||
|
<label class="form-check-label" for="rememberMe">
|
||||||
|
Ingat saya
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<!-- <label class="text-primary fw-semibold" for="">
|
||||||
|
<a routerLink="" class="text-decoration-none"
|
||||||
|
>Lupa Kata Sandi?</a
|
||||||
|
>
|
||||||
|
</label> -->
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
class="btn btn-primary d-block w-100 btn-lg"
|
||||||
|
type="submit"
|
||||||
|
[disabled]="form.invalid || isFormSubmitted"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
*ngIf="isFormSubmitted"
|
||||||
|
class="spinner-border spinner-border-sm"
|
||||||
|
role="status"
|
||||||
|
aria-hidden="true"
|
||||||
|
></span>
|
||||||
|
<span *ngIf="!isFormSubmitted"> Masuk </span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="text-center small text-body-tertiary mb-0 mt-auto">
|
||||||
|
© All Right Reversed by Dinas PUPR Kota Batu
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||