Skip to content

Commit

Permalink
Remove .ng folder from Git
Browse files Browse the repository at this point in the history
  • Loading branch information
little9 committed Aug 8, 2023
1 parent 6166d2f commit a7d84fc
Show file tree
Hide file tree
Showing 41 changed files with 1,222 additions and 1 deletion.
112 changes: 112 additions & 0 deletions .ng/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"$schema": "../node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"exl-cloudapp-sdk-base": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "../build",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": false,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [],
"allowedCommonJsDependencies": [
"strongly-typed-events",
"lodash",
"loglevel",
"ngx-translate-parser-plural-select"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "exl-cloudapp-sdk-base:build",
"proxyConfig": "src/proxy.conf.js",
"disableHostCheck": false,
"port": 4200
},
"configurations": {
"production": {
"browserTarget": "exl-cloudapp-sdk-base:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "exl-cloudapp-sdk-base:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
}
}
}
}},
"defaultProject": "exl-cloudapp-sdk-base"
}
12 changes: 12 additions & 0 deletions .ng/browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
9 changes: 9 additions & 0 deletions .ng/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "es5"
},
"angularCompilerOptions": {
"strictTemplates": true
}
}
32 changes: 32 additions & 0 deletions .ng/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/ng-test'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
12 changes: 12 additions & 0 deletions .ng/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "exl-cloudapp-sdk-base",
"version": "0.0.0",
"scripts": {
"start": "node ../node_modules/@angular/cli/bin/ng serve",
"build": "node ../node_modules/@angular/cli/bin/ng build --prod",
"generate": "node ../node_modules/@angular/cli/bin/ng generate",
"test": "node ../node_modules/@angular/cli/bin/ng test",
"extract-i18n": "node ../node_modules/@biesbjerg/ngx-translate-extract/bin/cli.js"
},
"private": true
}
13 changes: 13 additions & 0 deletions .ng/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MainComponent } from './main/main.component';

const routes: Routes = [
{ path: '', component: MainComponent },
];

@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }
12 changes: 12 additions & 0 deletions .ng/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
import { AppService } from './app.service';

@Component({
selector: 'app-root',
template: '<cloudapp-alert></cloudapp-alert><router-outlet></router-outlet>'
})
export class AppComponent {

constructor(private appService: AppService) { }

}
37 changes: 37 additions & 0 deletions .ng/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MaterialModule, CloudAppTranslateModule, AlertModule } from '@exlibris/exl-cloudapp-angular-lib';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { MainComponent } from './main/main.component';
import { PrintButtonComponent } from './print-button/print-button.component';
import { StorageLocationIdSortPipe } from './storage-location-id-sort.pipe';

@NgModule({
declarations: [
AppComponent,
MainComponent,
PrintButtonComponent,
StorageLocationIdSortPipe
],
imports: [
MaterialModule,
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
HttpClientModule,
AlertModule,
FormsModule,
ReactiveFormsModule,
CloudAppTranslateModule.forRoot(),
],
providers: [
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'standard' } },
],
bootstrap: [AppComponent]
})
export class AppModule { }
12 changes: 12 additions & 0 deletions .ng/src/app/app.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

import { Injectable } from '@angular/core';
import { InitService } from '@exlibris/exl-cloudapp-angular-lib';

@Injectable({
providedIn: 'root'
})
export class AppService {

constructor(private initService: InitService) {}

}
90 changes: 90 additions & 0 deletions .ng/src/app/interfaces/requested-resources.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
export interface RequestedResources {
requested_resource: RequestedResource[]
total_record_count: number
}

export interface RequestedResource {
location: Location
resource_metadata: ResourceMetadata
request: Request[]
}

export interface Location {
library: Library
holding_id: HoldingId
shelving_location: string
copy: Copy[]
call_number?: string
}

export interface Library {
value: string
desc: string
}

export interface HoldingId {
value: string
link: string
}

export interface Copy {
pid: string
barcode: string
base_status: BaseStatus
alternative_call_number: string
storage_location_id: string
link: string
}

export interface BaseStatus {
value: string
desc: string
}

export interface ResourceMetadata {
title: string
author?: string
isbn?: string
publisher?: string
mms_id: MmsId
publication_place?: string
publication_year: string
issn?: string
}

export interface MmsId {
value: string
link: string
}

export interface Request {
description: any
id: string
destination: Destination
requester: Requester
printed: boolean
reported: boolean
request_type: string
request_sub_type: RequestSubType
request_date: string
request_time: string
link: string
comment?: string
email: string
}

export interface Destination {
value: string
desc: string
}

export interface Requester {
desc: string
link?: string
}

export interface RequestSubType {
value: string
desc?: string
}

Loading

0 comments on commit a7d84fc

Please sign in to comment.