Commit b241792d authored by Mo Firouz's avatar Mo Firouz
Browse files

Setup hash strategy for console paths.

parent 2744ebb0
Loading
Loading
Loading
Loading
+47 −47

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -16,4 +16,4 @@ Run `ng generate component component-name` to generate a new component. You can

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `npm run-script build` (not `ng build`) to build the project. The build artifacts will be stored in the `dist/` directory with the `production` configuration.
+3 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
              "file-saver",
              "js-yaml"
            ],
            "outputPath": "dist/ui",
            "outputPath": "dist",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
@@ -32,7 +32,7 @@
            "aot": true,
            "assets": [
              "src/favicon.ico",
              "src/assets"
              "src/static"
            ],
            "styles": [
              "src/bootstrap.min.css",
@@ -42,6 +42,7 @@
          },
          "configurations": {
            "production": {
              "deployUrl": "static/",
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "build": "ng build --prod",
    "postbuild": "mv dist/*.js dist/*.css dist/*.txt dist/static/",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
+5 −5
Original line number Diff line number Diff line
@@ -8,18 +8,18 @@
  </nav>

  <div>
    <button *ngIf="exportAllowed()" (click)="exportAccount($event)" type="button" class="btn  btn-outline-secondary mr-2"><img class="mr-2" src="/assets/svg/export.svg" alt="" width="13" height="13">Export</button>
    <button *ngIf="banAllowed()" (click)="banUnbanAccount($event)" type="button" class="btn  btn-outline-secondary mr-2"><img class="mr-2" src="/assets/svg/ban.svg" alt="" width="13" height="13">
    <button *ngIf="exportAllowed()" (click)="exportAccount($event)" type="button" class="btn  btn-outline-secondary mr-2"><img class="mr-2" src="/static/svg/export.svg" alt="" width="13" height="13">Export</button>
    <button *ngIf="banAllowed()" (click)="banUnbanAccount($event)" type="button" class="btn  btn-outline-secondary mr-2"><img class="mr-2" src="/static/svg/ban.svg" alt="" width="13" height="13">
      <span *ngIf="account.disable_time">Unban</span>
      <span *ngIf="!account.disable_time">Ban</span>
    </button>
    <button *ngIf="deleteAllowed()" (click)="deleteAccount($event, false)" type="button" class="btn btn-danger btn-danger-icon mr-2"><img class="mr-2" src="/assets/svg/bin-red.svg" alt="" width="14" height="">Delete</button>
    <button *ngIf="deleteAllowed()" (click)="deleteAccount($event, true)" type="button" class="btn btn-danger btn-danger-icon mr-2"><img class="mr-2" src="/assets/svg/bin-recorded.svg" alt="" width="15" height="">Recorded delete</button>
    <button *ngIf="deleteAllowed()" (click)="deleteAccount($event, false)" type="button" class="btn btn-danger btn-danger-icon mr-2"><img class="mr-2" src="/static/svg/bin-red.svg" alt="" width="14" height="">Delete</button>
    <button *ngIf="deleteAllowed()" (click)="deleteAccount($event, true)" type="button" class="btn btn-danger btn-danger-icon mr-2"><img class="mr-2" src="/static/svg/bin-recorded.svg" alt="" width="15" height="">Recorded delete</button>
  </div>
</div>

<ngb-alert [dismissible]="false" type="danger" class="mb-3" *ngIf="error">
  <img src="/assets/svg/red-triangle.svg" alt="" width="16" height="" class="mr-2">
  <img src="/static/svg/red-triangle.svg" alt="" width="16" height="" class="mr-2">
  <h6 class="mr-2 d-inline font-weight-bold">An error occurred: {{error}}</h6>
</ngb-alert>

Loading