mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
删除非必要文件
This commit is contained in:
parent
202d39c8c7
commit
a936793705
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate((source, subscriber) => {\n let connection = null;\n source._refCount++;\n const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n const sharedConnection = source._connection;\n const conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n//# sourceMappingURL=refCount.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Config } from '../../../../common/config/public/Config';\nimport { Utils } from '../../../../common/Utils';\nexport class Person {\n static getThumbnailUrl(that) {\n return Utils.concatUrls(Config.Server.urlBase, Config.Server.apiPath + '/person/', encodeURIComponent(that.name), '/thumbnail');\n }\n}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber, OperatorSubscriber } from './OperatorSubscriber';\nexport function groupBy(keySelector, elementOrOptions, duration, connector) {\n return operate((source, subscriber) => {\n let element;\n if (!elementOrOptions || typeof elementOrOptions === 'function') {\n element = elementOrOptions;\n } else {\n ({\n duration,\n element,\n connector\n } = elementOrOptions);\n }\n const groups = new Map();\n const notify = cb => {\n groups.forEach(cb);\n cb(subscriber);\n };\n const handleError = err => notify(consumer => consumer.error(err));\n let activeGroups = 0;\n let teardownAttempted = false;\n const groupBySourceSubscriber = new OperatorSubscriber(subscriber, value => {\n try {\n const key = keySelector(value);\n let group = groups.get(key);\n if (!group) {\n groups.set(key, group = connector ? connector() : new Subject());\n const grouped = createGroupedObservable(key, group);\n subscriber.next(grouped);\n if (duration) {\n const durationSubscriber = createOperatorSubscriber(group, () => {\n group.complete();\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n }, undefined, undefined, () => groups.delete(key));\n groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber));\n }\n }\n group.next(element ? element(value) : value);\n } catch (err) {\n handleError(err);\n }\n }, () => notify(consumer => consumer.complete()), handleError, () => groups.clear(), () => {\n teardownAttempted = true;\n return activeGroups === 0;\n });\n source.subscribe(groupBySourceSubscriber);\n function createGroupedObservable(key, groupSubject) {\n const result = new Observable(groupSubscriber => {\n activeGroups++;\n const innerSub = groupSubject.subscribe(groupSubscriber);\n return () => {\n innerSub.unsubscribe();\n --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();\n };\n });\n result.key = key;\n return result;\n }\n });\n}\n//# sourceMappingURL=groupBy.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const {\n delegate\n } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const {\n delegate\n } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined\n};\n//# sourceMappingURL=timeoutProvider.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export function createObject(keys, values) {\n return keys.reduce((result, key, i) => (result[key] = values[i], result), {});\n}\n//# sourceMappingURL=createObject.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n const [add, remove] = isEventTarget(target) ? eventTargetMethods.map(methodName => handler => target[methodName](eventName, handler, options)) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap(subTarget => fromEvent(subTarget, eventName, options))(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable(subscriber => {\n const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n add(handler);\n return () => remove(handler);\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return methodName => handler => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n//# sourceMappingURL=fromEvent.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Config } from '../../../../common/config/public/Config';\nimport { CookieNames } from '../../../../common/CookieNames';\nimport { CookieService } from 'ngx-cookie-service';\nimport { BsDropdownDirective } from 'ngx-bootstrap/dropdown';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"ngx-cookie-service\";\nimport * as i2 from \"@angular/common\";\nimport * as i3 from \"ngx-bootstrap/dropdown\";\nconst _c0 = [\"dropdown\"];\nfunction LanguageComponent_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.current, \" \");\n }\n}\nfunction LanguageComponent_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 6);\n }\n}\nfunction LanguageComponent_div_5_a_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"a\", 9);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const lang_r5 = ctx.$implicit;\n const ctx_r4 = i0.ɵɵnextContext(2);\n i0.ɵɵpropertyInterpolate2(\"href\", \"\", ctx_r4.urlBase, \"/\", lang_r5, \"\", i0.ɵɵsanitizeUrl);\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(lang_r5);\n }\n}\nfunction LanguageComponent_div_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 7);\n i0.ɵɵtemplate(1, LanguageComponent_div_5_a_1_Template, 2, 3, \"a\", 8);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r3.languages);\n }\n}\nexport let LanguageComponent = /*#__PURE__*/(() => {\n class LanguageComponent {\n constructor(cookieService) {\n this.cookieService = cookieService;\n this.languages = [];\n this.current = null;\n this.urlBase = Config.Server.urlBase;\n this.languages = Config.Server.languages.sort();\n if (this.cookieService.get(CookieNames.lang) != null) {\n this.current = this.cookieService.get(CookieNames.lang);\n }\n }\n }\n LanguageComponent.ɵfac = function LanguageComponent_Factory(t) {\n return new (t || LanguageComponent)(i0.ɵɵdirectiveInject(i1.CookieService));\n };\n LanguageComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: LanguageComponent,\n selectors: [[\"app-language\"]],\n viewQuery: function LanguageComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 7);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdown = _t.first);\n }\n },\n inputs: {\n isDark: \"isDark\"\n },\n decls: 6,\n vars: 3,\n consts: [[\"dropdown\", \"\", 1, \"dropdown\"], [\"dropdown\", \"bs-dropdown\"], [\"dropdownToggle\", \"\", \"type\", \"button\", \"id\", \"language\", \"data-toggle\", \"dropdown\", \"aria-haspopup\", \"true\", \"aria-expanded\", \"true\", 1, \"btn\", \"btn-secondary\", \"dropdown-toggle\", 3, \"ngClass\"], [4, \"ngIf\"], [\"class\", \"oi oi-globe\", 4, \"ngIf\"], [\"class\", \"dropdown-menu\", \"aria-labelledby\", \"language\", 4, \"dropdownMenu\"], [1, \"oi\", \"oi-globe\"], [\"aria-labelledby\", \"language\", 1, \"dropdown-menu\"], [\"class\", \"dropdown-item\", 3, \"href\", 4, \"ngFor\", \"ngForOf\"], [1, \"dropdown-item\", 3, \"href\"]],\n template: function LanguageComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0, 1)(2, \"button\", 2);\n i0.ɵɵtemplate(3, LanguageComponent_ng_container_3_Template, 2, 1, \"ng-container\", 3);\n i0.ɵɵtemplate(4, LanguageComponent_span_4_Template, 1, 0, \"span\", 4);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(5, LanguageComponent_div_5_Template, 2, 1, \"div\", 5);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngClass\", ctx.isDark ? \"dark\" : \"\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.current != null);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.current == null);\n }\n },\n dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i3.BsDropdownMenuDirective, i3.BsDropdownToggleDirective, i3.BsDropdownDirective],\n styles: [\".dropdown-menu[_ngcontent-%COMP%]{min-width:auto}.dark[_ngcontent-%COMP%]{background-color:#000;color:#ffffff8c;border-color:transparent}.dark[_ngcontent-%COMP%]:hover{border-color:#adadad}\"]\n });\n return LanguageComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export var SortingMethods = /*#__PURE__*/(() => {\n (function (SortingMethods) {\n SortingMethods[SortingMethods[\"ascName\"] = 1] = \"ascName\";\n SortingMethods[SortingMethods[\"descName\"] = 2] = \"descName\";\n SortingMethods[SortingMethods[\"ascDate\"] = 3] = \"ascDate\";\n SortingMethods[SortingMethods[\"descDate\"] = 4] = \"descDate\";\n SortingMethods[SortingMethods[\"ascRating\"] = 5] = \"ascRating\";\n SortingMethods[SortingMethods[\"descRating\"] = 6] = \"descRating\";\n SortingMethods[SortingMethods[\"random\"] = 7] = \"random\";\n })(SortingMethods || (SortingMethods = {}));\n return SortingMethods;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { ShareService } from '../ui/gallery/share.service';\nimport { QueryParams } from '../../../common/QueryParams';\nimport { Utils } from '../../../common/Utils';\nimport { ContentService } from '../ui/gallery/content.service';\nimport { Config } from '../../../common/config/public/Config';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../ui/gallery/share.service\";\nimport * as i2 from \"../ui/gallery/content.service\";\nexport let QueryService = /*#__PURE__*/(() => {\n class QueryService {\n constructor(shareService, galleryService) {\n this.shareService = shareService;\n this.galleryService = galleryService;\n }\n getMediaStringId(media) {\n if (this.galleryService.isSearchResult()) {\n return Utils.concatUrls(media.directory.path, media.directory.name, media.name);\n } else {\n return media.name;\n }\n }\n getParams(media) {\n const query = {};\n if (media) {\n query[QueryParams.gallery.photo] = this.getMediaStringId(media);\n }\n if (Config.Sharing.enabled === true) {\n if (this.shareService.isSharing()) {\n query[QueryParams.gallery.sharingKey_query] = this.shareService.getSharingKey();\n }\n }\n return query;\n }\n getParamsForDirs(directory) {\n const params = {};\n if (Config.Sharing.enabled === true) {\n if (this.shareService.isSharing()) {\n params[QueryParams.gallery.sharingKey_query] = this.shareService.getSharingKey();\n }\n }\n if (directory && directory.lastModified && directory.lastScanned && !directory.isPartial) {\n params[QueryParams.gallery.knownLastModified] = directory.lastModified;\n params[QueryParams.gallery.knownLastScanned] = directory.lastScanned;\n }\n return params;\n }\n }\n QueryService.ɵfac = function QueryService_Factory(t) {\n return new (t || QueryService)(i0.ɵɵinject(i1.ShareService), i0.ɵɵinject(i2.ContentService));\n };\n QueryService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: QueryService,\n factory: QueryService.ɵfac\n });\n return QueryService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport const defaultThrottleConfig = {\n leading: true,\n trailing: false\n};\nexport function throttle(durationSelector, config = defaultThrottleConfig) {\n return operate((source, subscriber) => {\n const {\n leading,\n trailing\n } = config;\n let hasValue = false;\n let sendValue = null;\n let throttled = null;\n let isComplete = false;\n const endThrottling = () => {\n throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();\n throttled = null;\n if (trailing) {\n send();\n isComplete && subscriber.complete();\n }\n };\n const cleanupThrottling = () => {\n throttled = null;\n isComplete && subscriber.complete();\n };\n const startThrottle = value => throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));\n const send = () => {\n if (hasValue) {\n hasValue = false;\n const value = sendValue;\n sendValue = null;\n subscriber.next(value);\n !isComplete && startThrottle(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n sendValue = value;\n !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n }, () => {\n isComplete = true;\n !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=throttle.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return (source, subscriber) => {\n let hasState = hasSeed;\n let state = seed;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const i = index++;\n state = hasState ? accumulator(state, value, i) : (hasState = true, value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete && (() => {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n//# sourceMappingURL=scanInternals.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { UserRoles } from '../../../../common/entities/UserDTO';\nimport { BehaviorSubject } from 'rxjs';\nimport { UserService } from './user.service';\nimport { Config } from '../../../../common/config/public/Config';\nimport { NetworkService } from './network.service';\nimport { ErrorCodes } from '../../../../common/entities/Error';\nimport { CookieNames } from '../../../../common/CookieNames';\nimport { ShareService } from '../../ui/gallery/share.service';\nimport { CookieService } from 'ngx-cookie-service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./user.service\";\nimport * as i2 from \"./network.service\";\nimport * as i3 from \"../../ui/gallery/share.service\";\nimport * as i4 from \"ngx-cookie-service\";\nexport let AuthenticationService = /*#__PURE__*/(() => {\n class AuthenticationService {\n constructor(userService, networkService, shareService, cookieService) {\n this.userService = userService;\n this.networkService = networkService;\n this.shareService = shareService;\n this.cookieService = cookieService;\n this.user = new BehaviorSubject(null);\n // picking up session..\n if (this.isAuthenticated() === false && this.cookieService.get(CookieNames.session) != null) {\n if (typeof ServerInject !== 'undefined' && typeof ServerInject.user !== 'undefined') {\n this.user.next(ServerInject.user);\n }\n this.getSessionUser().catch(console.error);\n } else {\n if (Config.Users.authenticationRequired === false) {\n this.user.next({\n name: UserRoles[Config.Users.unAuthenticatedUserRole],\n role: Config.Users.unAuthenticatedUserRole\n });\n }\n }\n networkService.addGlobalErrorHandler(error => {\n if (error.code === ErrorCodes.NOT_AUTHENTICATED) {\n this.user.next(null);\n return true;\n }\n if (error.code === ErrorCodes.NOT_AUTHORISED) {\n this.logout().catch(console.error);\n return true;\n }\n return false;\n });\n // TODO: refactor architecture remove shareService dependency\n window.setTimeout(() => {\n this.user.subscribe(u => {\n this.shareService.onNewUser(u);\n });\n }, 0);\n }\n login(credential) {\n var _this = this;\n return _asyncToGenerator(function* () {\n const user = yield _this.userService.login(credential);\n _this.user.next(user);\n return user;\n })();\n }\n shareLogin(password) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n const user = yield _this2.userService.shareLogin(password);\n _this2.user.next(user);\n return user;\n })();\n }\n isAuthenticated() {\n if (Config.Users.authenticationRequired === false) {\n return true;\n }\n return !!this.user.value;\n }\n isAuthorized(role) {\n return this.user.value && this.user.value.role >= role;\n }\n canSearch() {\n return Config.Search.enabled && this.isAuthorized(UserRoles.Guest);\n }\n logout() {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n yield _this3.userService.logout();\n _this3.user.next(null);\n })();\n }\n getSessionUser() {\n var _this4 = this;\n return _asyncToGenerator(function* () {\n try {\n _this4.user.next(yield _this4.userService.getSessionUser());\n } catch (error) {\n console.error(error);\n }\n })();\n }\n }\n AuthenticationService.ɵfac = function AuthenticationService_Factory(t) {\n return new (t || AuthenticationService)(i0.ɵɵinject(i1.UserService), i0.ɵɵinject(i2.NetworkService), i0.ɵɵinject(i3.ShareService), i0.ɵɵinject(i4.CookieService));\n };\n AuthenticationService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: AuthenticationService,\n factory: AuthenticationService.ɵfac,\n providedIn: 'root'\n });\n return AuthenticationService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { EventEmitter } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/forms\";\nimport * as i2 from \"ngx-bootstrap/datepicker\";\nconst _c0 = function () {\n return {\n dateInputFormat: \"YYYY.MM.DD, HH:mm\"\n };\n};\nexport let TimeStampDatePickerComponent = /*#__PURE__*/(() => {\n class TimeStampDatePickerComponent {\n constructor() {\n this.timestampValue = 0;\n this.timestampChange = new EventEmitter();\n this.date = new Date();\n }\n get timestamp() {\n return this.timestampValue;\n }\n set timestamp(val) {\n this.date.setTime(val);\n if (this.timestampValue === val) {\n return;\n }\n this.timestampValue = val;\n this.timestampChange.emit(this.timestampValue);\n }\n onChange(date) {\n this.timestamp = new Date(date).getTime();\n }\n }\n TimeStampDatePickerComponent.ɵfac = function TimeStampDatePickerComponent_Factory(t) {\n return new (t || TimeStampDatePickerComponent)();\n };\n TimeStampDatePickerComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: TimeStampDatePickerComponent,\n selectors: [[\"app-timestamp-datepicker\"]],\n inputs: {\n name: \"name\",\n timestamp: \"timestamp\"\n },\n outputs: {\n timestampChange: \"timestampChange\"\n },\n decls: 1,\n vars: 4,\n consts: [[\"bsDatepicker\", \"\", \"required\", \"\", 1, \"form-control\", 3, \"name\", \"ngModel\", \"bsConfig\", \"ngModelChange\"]],\n template: function TimeStampDatePickerComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"input\", 0);\n i0.ɵɵlistener(\"ngModelChange\", function TimeStampDatePickerComponent_Template_input_ngModelChange_0_listener($event) {\n return ctx.onChange($event);\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"name\", ctx.name)(\"ngModel\", ctx.date)(\"bsConfig\", i0.ɵɵpureFunction0(3, _c0));\n }\n },\n dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.RequiredValidator, i1.NgModel, i2.BsDatepickerDirective, i2.BsDatepickerInputDirective],\n encapsulation: 2\n });\n return TimeStampDatePickerComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WebConfigLoader = void 0;\nconst Loader_1 = require(\"./Loader\");\nclass WebConfigLoader {\n static loadUrlParams(targetObject) {\n Loader_1.Loader.processHierarchyVar(targetObject, WebConfigLoader.getUrlParams());\n }\n static loadFrontendConfig(targetObject, sourceObject) {\n Object.keys(sourceObject).forEach(key => {\n if (typeof targetObject[key] === 'undefined') {\n return;\n }\n if (Array.isArray(targetObject[key])) {\n return targetObject[key] = sourceObject[key];\n }\n if (typeof targetObject[key] === 'object') {\n WebConfigLoader.loadFrontendConfig(targetObject[key], sourceObject[key]);\n } else {\n targetObject[key] = sourceObject[key];\n }\n });\n }\n static getUrlParams() {\n let match;\n const pl = /\\+/g,\n // Regex for replacing addition symbol with a space\n search = /([^&=]+)=?([^&]*)/g,\n decode = s => {\n return decodeURIComponent(s.replace(pl, ' '));\n },\n query = window.location.search.substring(1);\n const urlParams = {};\n while (match = search.exec(query)) {\n urlParams[decode(match[1])] = decode(match[2]);\n }\n return urlParams;\n }\n}\nexports.WebConfigLoader = WebConfigLoader;\n//# sourceMappingURL=WebConfigLoader.js.map","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { exhaustAll } from './exhaustAll';\nexport const exhaust = exhaustAll;\n//# sourceMappingURL=exhaust.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n//# sourceMappingURL=Action.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"const {\n isArray\n} = Array;\nconst {\n getPrototypeOf,\n prototype: objectProto,\n keys: getKeys\n} = Object;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n const first = args[0];\n if (isArray(first)) {\n return {\n args: first,\n keys: null\n };\n }\n if (isPOJO(first)) {\n const keys = getKeys(first);\n return {\n args: keys.map(key => first[key]),\n keys\n };\n }\n }\n return {\n args: args,\n keys: null\n };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n//# sourceMappingURL=argsArgArrayOrObject.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export function noop() {}\n//# sourceMappingURL=noop.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { AsyncScheduler } from './AsyncScheduler';\nexport class AnimationFrameScheduler extends AsyncScheduler {\n flush(action) {\n this._active = true;\n const flushId = this._scheduled;\n this._scheduled = undefined;\n const {\n actions\n } = this;\n let error;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while ((action = actions[0]) && action.id === flushId && actions.shift());\n this._active = false;\n if (error) {\n while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n//# sourceMappingURL=AnimationFrameScheduler.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ConfigProperty = void 0;\nconst Utils_1 = require(\"../../Utils\");\nfunction ConfigProperty(options = {}) {\n return (target, property) => {\n let type = options.type;\n if (typeof type === 'undefined') {\n type = Reflect.getMetadata('design:type', target, property);\n }\n switch (type) {\n case Array:\n type = 'array';\n break;\n case Number:\n type = 'float';\n break;\n case String:\n type = 'string';\n break;\n case Boolean:\n type = 'boolean';\n break;\n case Object:\n type = 'object';\n break;\n case Date:\n type = 'date';\n break;\n }\n const state = target.__state || {};\n state[property] = options;\n state[property].type = type;\n const isEnumType = Utils_1.Utils.isEnum(type);\n if (isEnumType) {\n state[property].isEnumType = isEnumType;\n }\n const isEnumArrayType = Utils_1.Utils.isEnum(state[property].arrayType);\n if (isEnumArrayType) {\n state[property].isEnumArrayType = isEnumArrayType;\n }\n const isConfigType = type.prototype && typeof type.prototype.__loadJSONObject === 'function' && typeof type.prototype.toJSON === 'function';\n if (isConfigType) {\n state[property].isConfigType = isConfigType;\n }\n const isConfigArrayType = state[property].arrayType && state[property].arrayType.prototype && typeof state[property].arrayType.prototype.__loadJSONObject === 'function' && typeof state[property].arrayType.prototype.toJSON === 'function';\n if (isConfigArrayType) {\n state[property].isConfigArrayType = isConfigArrayType;\n }\n if (type === 'unsignedInt' || type === 'positiveFloat') {\n state[property].min = Math.max(state[property].min || 0, 0);\n }\n target.__state = state;\n return {\n set: function (value) {\n this.__setAndValidateFromRoot(property, this.__validate(property, value));\n },\n get: function () {\n return this.__state[property].value;\n },\n enumerable: true,\n configurable: true\n };\n };\n}\nexports.ConfigProperty = ConfigProperty;\n//# sourceMappingURL=ConfigPropoerty.js.map","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';\n//# sourceMappingURL=isArrayLike.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nexport function race(...sources) {\n sources = argsOrArgArray(sources);\n return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));\n}\nexport function raceInit(sources) {\n return subscriber => {\n let subscriptions = [];\n for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {\n subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (subscriptions) {\n for (let s = 0; s < subscriptions.length; s++) {\n s !== i && subscriptions[s].unsubscribe();\n }\n subscriptions = null;\n }\n subscriber.next(value);\n })));\n }\n };\n}\n//# sourceMappingURL=race.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n } else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n//# sourceMappingURL=mergeMap.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import * as __NgCli_bootstrap_1 from \"@angular/platform-browser\";\nimport { enableProdMode } from '@angular/core';\nimport { environment } from './environments/environment';\nimport { AppModule } from './app/app.module';\nif (environment.production) {\n enableProdMode();\n}\n__NgCli_bootstrap_1.platformBrowser().bootstrapModule(AppModule).catch(err => console.error(err));","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n//# sourceMappingURL=throwIfEmpty.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { zip as zipStatic } from '../observable/zip';\nimport { operate } from '../util/lift';\nexport function zip(...sources) {\n return operate((source, subscriber) => {\n zipStatic(source, ...sources).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=zip.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function pairwise() {\n return operate((source, subscriber) => {\n let prev;\n let hasPrev = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const p = prev;\n prev = value;\n hasPrev && subscriber.next([p, value]);\n hasPrev = true;\n }));\n });\n}\n//# sourceMappingURL=pairwise.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export var JobProgressStates = /*#__PURE__*/(() => {\n (function (JobProgressStates) {\n JobProgressStates[JobProgressStates[\"running\"] = 1] = \"running\";\n JobProgressStates[JobProgressStates[\"cancelling\"] = 2] = \"cancelling\";\n JobProgressStates[JobProgressStates[\"interrupted\"] = 3] = \"interrupted\";\n JobProgressStates[JobProgressStates[\"canceled\"] = 4] = \"canceled\";\n JobProgressStates[JobProgressStates[\"finished\"] = 5] = \"finished\";\n })(JobProgressStates || (JobProgressStates = {}));\n return JobProgressStates;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { bindCallbackInternals } from './bindCallbackInternals';\nexport function bindCallback(callbackFunc, resultSelector, scheduler) {\n return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);\n}\n//# sourceMappingURL=bindCallback.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { NetworkService } from '../../model/network/network.service';\nimport { ContentWrapper } from '../../../../common/entities/ConentWrapper';\nimport { GalleryCacheService } from './cache.gallery.service';\nimport { BehaviorSubject } from 'rxjs';\nimport { Config } from '../../../../common/config/public/Config';\nimport { ShareService } from './share.service';\nimport { NavigationService } from '../../model/navigation.service';\nimport { QueryParams } from '../../../../common/QueryParams';\nimport { ErrorCodes } from '../../../../common/entities/Error';\nimport { map } from 'rxjs/operators';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../../model/network/network.service\";\nimport * as i2 from \"./cache.gallery.service\";\nimport * as i3 from \"./share.service\";\nimport * as i4 from \"../../model/navigation.service\";\nexport let ContentService = /*#__PURE__*/(() => {\n class ContentService {\n constructor(networkService, galleryCacheService, shareService, navigationService) {\n this.networkService = networkService;\n this.galleryCacheService = galleryCacheService;\n this.shareService = shareService;\n this.navigationService = navigationService;\n this.lastRequest = {\n directory: null\n };\n this.ongoingSearch = null;\n this.content = new BehaviorSubject(new ContentWrapperWithError());\n this.directoryContent = this.content.pipe(map(c => c.directory ? c.directory : c.searchResult));\n }\n setContent(content) {\n this.content.next(content);\n }\n loadDirectory(directoryName) {\n var _this = this;\n return _asyncToGenerator(function* () {\n // load from cache\n const cw = _this.galleryCacheService.getDirectory(directoryName);\n ContentWrapper.unpack(cw);\n _this.setContent(cw);\n _this.lastRequest.directory = directoryName;\n // prepare server request\n const params = {};\n if (Config.Sharing.enabled === true) {\n if (_this.shareService.isSharing()) {\n params[QueryParams.gallery.sharingKey_query] = _this.shareService.getSharingKey();\n }\n }\n if (cw.directory && cw.directory.lastModified && cw.directory.lastScanned && !cw.directory.isPartial) {\n params[QueryParams.gallery.knownLastModified] = cw.directory.lastModified;\n params[QueryParams.gallery.knownLastScanned] = cw.directory.lastScanned;\n }\n try {\n const cw = yield _this.networkService.getJson('/gallery/content/' + encodeURIComponent(directoryName), params);\n if (!cw || cw.notModified === true) {\n return;\n }\n _this.galleryCacheService.setDirectory(cw); // save it before adding references\n if (_this.lastRequest.directory !== directoryName) {\n return;\n }\n ContentWrapper.unpack(cw);\n _this.lastDirectory = cw.directory;\n _this.setContent(cw);\n } catch (e) {\n console.error(e);\n _this.navigationService.toGallery().catch(console.error);\n }\n })();\n }\n search(query) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n if (_this2.searchId != null) {\n clearTimeout(_this2.searchId);\n }\n _this2.ongoingSearch = query;\n _this2.setContent(new ContentWrapperWithError());\n let cw = _this2.galleryCacheService.getSearch(JSON.parse(query));\n if (!cw || cw.searchResult == null) {\n try {\n cw = yield _this2.networkService.getJson('/search/' + query);\n _this2.galleryCacheService.setSearch(cw);\n } catch (e) {\n if (e.code === ErrorCodes.LocationLookUp_ERROR) {\n cw.error = 'Cannot find location: ' + e.message;\n } else {\n throw e;\n }\n }\n }\n if (_this2.ongoingSearch !== query) {\n return;\n }\n ContentWrapper.unpack(cw);\n _this2.setContent(cw);\n })();\n }\n isSearchResult() {\n return !!this.content.value.searchResult;\n }\n }\n ContentService.ɵfac = function ContentService_Factory(t) {\n return new (t || ContentService)(i0.ɵɵinject(i1.NetworkService), i0.ɵɵinject(i2.GalleryCacheService), i0.ɵɵinject(i3.ShareService), i0.ɵɵinject(i4.NavigationService));\n };\n ContentService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: ContentService,\n factory: ContentService.ɵfac\n });\n return ContentService;\n})();\nexport class ContentWrapperWithError extends ContentWrapper {}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function windowWhen(closingSelector) {\n return operate((source, subscriber) => {\n let window;\n let closingSubscriber;\n const handleError = err => {\n window.error(err);\n subscriber.error(err);\n };\n const openWindow = () => {\n closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();\n window === null || window === void 0 ? void 0 : window.complete();\n window = new Subject();\n subscriber.next(window.asObservable());\n let closingNotifier;\n try {\n closingNotifier = innerFrom(closingSelector());\n } catch (err) {\n handleError(err);\n return;\n }\n closingNotifier.subscribe(closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError));\n };\n openWindow();\n source.subscribe(createOperatorSubscriber(subscriber, value => window.next(value), () => {\n window.complete();\n subscriber.complete();\n }, handleError, () => {\n closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();\n window = null;\n }));\n });\n}\n//# sourceMappingURL=windowWhen.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { switchMap } from './switchMap';\nimport { identity } from '../util/identity';\nexport function switchAll() {\n return switchMap(identity);\n}\n//# sourceMappingURL=switchAll.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { not } from '../util/not';\nimport { filter } from './filter';\nexport function partition(predicate, thisArg) {\n return source => [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)];\n}\n//# sourceMappingURL=partition.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { arrRemove } from '../util/arrRemove';\nexport function windowToggle(openings, closingSelector) {\n return operate((source, subscriber) => {\n const windows = [];\n const handleError = err => {\n while (0 < windows.length) {\n windows.shift().error(err);\n }\n subscriber.error(err);\n };\n innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, openValue => {\n const window = new Subject();\n windows.push(window);\n const closingSubscription = new Subscription();\n const closeWindow = () => {\n arrRemove(windows, window);\n window.complete();\n closingSubscription.unsubscribe();\n };\n let closingNotifier;\n try {\n closingNotifier = innerFrom(closingSelector(openValue));\n } catch (err) {\n handleError(err);\n return;\n }\n subscriber.next(window.asObservable());\n closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError)));\n }, noop));\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const windowsCopy = windows.slice();\n for (const window of windowsCopy) {\n window.next(value);\n }\n }, () => {\n while (0 < windows.length) {\n windows.shift().complete();\n }\n subscriber.complete();\n }, handleError, () => {\n while (0 < windows.length) {\n windows.shift().unsubscribe();\n }\n }));\n });\n}\n//# sourceMappingURL=windowToggle.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Subscription } from '../Subscription';\nexport const animationFrameProvider = {\n schedule(callback) {\n let request = requestAnimationFrame;\n let cancel = cancelAnimationFrame;\n const {\n delegate\n } = animationFrameProvider;\n if (delegate) {\n request = delegate.requestAnimationFrame;\n cancel = delegate.cancelAnimationFrame;\n }\n const handle = request(timestamp => {\n cancel = undefined;\n callback(timestamp);\n });\n return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle));\n },\n requestAnimationFrame(...args) {\n const {\n delegate\n } = animationFrameProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args);\n },\n cancelAnimationFrame(...args) {\n const {\n delegate\n } = animationFrameProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args);\n },\n delegate: undefined\n};\n//# sourceMappingURL=animationFrameProvider.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function skipWhile(predicate) {\n return operate((source, subscriber) => {\n let taking = false;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));\n });\n}\n//# sourceMappingURL=skipWhile.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { distinctUntilChanged } from './distinctUntilChanged';\nexport function distinctUntilKeyChanged(key, compare) {\n return distinctUntilChanged((x, y) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n//# sourceMappingURL=distinctUntilKeyChanged.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n//# sourceMappingURL=throwUnobservableError.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Immediate } from '../util/Immediate';\nconst {\n setImmediate,\n clearImmediate\n} = Immediate;\nexport const immediateProvider = {\n setImmediate(...args) {\n const {\n delegate\n } = immediateProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate)(...args);\n },\n clearImmediate(handle) {\n const {\n delegate\n } = immediateProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);\n },\n delegate: undefined\n};\n//# sourceMappingURL=immediateProvider.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { BehaviorSubject, first } from 'rxjs';\nimport { NetworkService } from '../../model/network/network.service';\nimport { WebConfig } from '../../../../common/config/private/WebConfig';\nimport { WebConfigClassBuilder } from 'typeconfig/src/decorators/builders/WebConfigClassBuilder';\nimport { ConfigPriority } from '../../../../common/config/public/ClientConfig';\nimport { CookieNames } from '../../../../common/CookieNames';\nimport { CookieService } from 'ngx-cookie-service';\nimport { DefaultsJobs } from '../../../../common/entities/job/JobDTO';\nimport { ScheduledJobsService } from './scheduled-jobs.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../../model/network/network.service\";\nimport * as i2 from \"./scheduled-jobs.service\";\nimport * as i3 from \"ngx-cookie-service\";\nexport let SettingsService = /*#__PURE__*/(() => {\n class SettingsService {\n constructor(networkService, jobsService, cookieService) {\n this.networkService = networkService;\n this.jobsService = jobsService;\n this.cookieService = cookieService;\n this.configPriority = ConfigPriority.basic;\n this.fetchingSettings = false;\n this.statistic = new BehaviorSubject(null);\n this.settings = new BehaviorSubject(WebConfigClassBuilder.attachPrivateInterface(new WebConfig()));\n this.getSettings().catch(console.error);\n if (this.cookieService.check(CookieNames.configPriority)) {\n this.configPriority = parseInt(this.cookieService.get(CookieNames.configPriority));\n }\n this.settings.pipe(first()).subscribe(() => {\n this.loadStatistic();\n });\n this.jobsService.onJobFinish.subscribe(jobName => {\n if (jobName === DefaultsJobs[DefaultsJobs.Indexing] || jobName === DefaultsJobs[DefaultsJobs['Gallery Reset']]) {\n this.loadStatistic();\n }\n });\n }\n getSettings() {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.fetchingSettings === true) {\n return;\n }\n _this.fetchingSettings = true;\n try {\n const wcg = WebConfigClassBuilder.attachPrivateInterface(new WebConfig());\n wcg.load(yield _this.networkService.getJson('/settings'));\n _this.settings.next(wcg);\n } catch (e) {\n console.error(e);\n }\n _this.fetchingSettings = false;\n })();\n }\n updateSettings(settings, settingsPath) {\n return this.networkService.putJson('/settings', {\n settings,\n settingsPath\n });\n }\n configPriorityChanged() {\n // save it for some years\n this.cookieService.set(CookieNames.configPriority, this.configPriority.toString(), 365 * 50);\n }\n loadStatistic() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n _this2.statistic.next(yield _this2.networkService.getJson('/admin/statistic'));\n })();\n }\n }\n SettingsService.ɵfac = function SettingsService_Factory(t) {\n return new (t || SettingsService)(i0.ɵɵinject(i1.NetworkService), i0.ɵɵinject(i2.ScheduledJobsService), i0.ɵɵinject(i3.CookieService));\n };\n SettingsService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: SettingsService,\n factory: SettingsService.ɵfac\n });\n return SettingsService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { SearchQueryParser } from '../../../../../common/SearchQueryParser';\nimport * as i0 from \"@angular/core\";\nexport let SearchQueryParserService = /*#__PURE__*/(() => {\n class SearchQueryParserService {\n constructor() {\n this.keywords = {\n NSomeOf: 'of',\n and: 'and',\n or: 'or',\n from: 'after',\n to: 'before',\n landscape: 'landscape',\n maxRating: 'max-rating',\n maxResolution: 'max-resolution',\n minRating: 'min-rating',\n minResolution: 'min-resolution',\n orientation: 'orientation',\n years_ago: '%d-years-ago',\n months_ago: '%d-months-ago',\n weeks_ago: '%d-weeks-ago',\n days_ago: '%d-days-ago',\n every_year: 'every-year',\n every_month: 'every-month',\n every_week: 'every-week',\n lastNDays: 'last-%d-days',\n sameDay: 'same-day',\n any_text: 'any-text',\n keyword: 'keyword',\n caption: 'caption',\n directory: 'directory',\n file_name: 'file-name',\n person: 'person',\n portrait: 'portrait',\n position: 'position',\n someOf: 'some-of',\n kmFrom: 'km-from'\n };\n this.parser = new SearchQueryParser(this.keywords);\n }\n parse(str) {\n return this.parser.parse(str);\n }\n stringify(query) {\n return this.parser.stringify(query);\n }\n }\n SearchQueryParserService.ɵfac = function SearchQueryParserService_Factory(t) {\n return new (t || SearchQueryParserService)();\n };\n SearchQueryParserService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: SearchQueryParserService,\n factory: SearchQueryParserService.ɵfac\n });\n return SearchQueryParserService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export const performanceTimestampProvider = {\n now() {\n return (performanceTimestampProvider.delegate || performance).now();\n },\n delegate: undefined\n};\n//# sourceMappingURL=performanceTimestampProvider.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import * as i0 from \"@angular/core\";\nexport let FileSizePipe = /*#__PURE__*/(() => {\n class FileSizePipe {\n transform(size) {\n const postFixes = ['B', 'KB', 'MB', 'GB', 'TB'];\n let index = 0;\n while (size > 1000 && index < postFixes.length - 1) {\n size /= 1000;\n index++;\n }\n return size.toFixed(2) + postFixes[index];\n }\n }\n FileSizePipe.ɵfac = function FileSizePipe_Factory(t) {\n return new (t || FileSizePipe)();\n };\n FileSizePipe.ɵpipe = /*@__PURE__*/i0.ɵɵdefinePipe({\n name: \"fileSize\",\n type: FileSizePipe,\n pure: true\n });\n return FileSizePipe;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WebConfigClassBuilder = void 0;\n/**\r\n * This class is a syntactic helper to do the dynamic casting for typescript, so intellisense properly works with the decorators\r\n */\nclass WebConfigClassBuilder {\n static build(ctor, ...args) {\n return new ctor(args);\n }\n static attachInterface(cfg) {\n return cfg;\n }\n static buildPrivate(ctor, ...args) {\n return new ctor(args);\n }\n static attachPrivateInterface(cfg) {\n return cfg;\n }\n}\nexports.WebConfigClassBuilder = WebConfigClassBuilder;\n//# sourceMappingURL=WebConfigClassBuilder.js.map","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.WebConfigClass = exports.WebConfigClassBuilder = void 0;\nvar WebConfigClassBuilder_1 = require(\"./src/decorators/builders/WebConfigClassBuilder\");\nObject.defineProperty(exports, \"WebConfigClassBuilder\", {\n enumerable: true,\n get: function () {\n return WebConfigClassBuilder_1.WebConfigClassBuilder;\n }\n});\nvar WebConfigClass_1 = require(\"./src/decorators/class/WebConfigClass\");\nObject.defineProperty(exports, \"WebConfigClass\", {\n enumerable: true,\n get: function () {\n return WebConfigClass_1.WebConfigClass;\n }\n});\n//# sourceMappingURL=web.js.map","map":null,"metadata":{},"sourceType":"script","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n } else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n//# sourceMappingURL=scheduleArray.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { combineLatest } from './combineLatest';\nexport function combineLatestWith(...otherSources) {\n return combineLatest(...otherSources);\n}\n//# sourceMappingURL=combineLatestWith.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { arrRemove } from '../util/arrRemove';\nexport function bufferToggle(openings, closingSelector) {\n return operate((source, subscriber) => {\n const buffers = [];\n innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, openValue => {\n const buffer = [];\n buffers.push(buffer);\n const closingSubscription = new Subscription();\n const emitBuffer = () => {\n arrRemove(buffers, buffer);\n subscriber.next(buffer);\n closingSubscription.unsubscribe();\n };\n closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop)));\n }, noop));\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n for (const buffer of buffers) {\n buffer.push(value);\n }\n }, () => {\n while (buffers.length > 0) {\n subscriber.next(buffers.shift());\n }\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=bufferToggle.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export {};\n//# sourceMappingURL=types.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { EmptyError } from './util/EmptyError';\nimport { SafeSubscriber } from './Subscriber';\nexport function firstValueFrom(source, config) {\n const hasConfig = typeof config === 'object';\n return new Promise((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: value => {\n resolve(value);\n subscriber.unsubscribe();\n },\n error: reject,\n complete: () => {\n if (hasConfig) {\n resolve(config.defaultValue);\n } else {\n reject(new EmptyError());\n }\n }\n });\n source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=firstValueFrom.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n//# sourceMappingURL=isInteropObservable.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n });\n}\n//# sourceMappingURL=filter.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n const scheduler = popScheduler(args);\n const resultSelector = popResultSelector(args);\n const {\n args: observables,\n keys\n } = argsArgArrayOrObject(args);\n if (observables.length === 0) {\n return from([], scheduler);\n }\n const result = new Observable(combineLatestInit(observables, scheduler, keys ? values => createObject(keys, values) : identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n return subscriber => {\n maybeSchedule(scheduler, () => {\n const {\n length\n } = observables;\n const values = new Array(length);\n let active = length;\n let remainingFirstValues = length;\n for (let i = 0; i < length; i++) {\n maybeSchedule(scheduler, () => {\n const source = from(observables[i], scheduler);\n let hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, () => {\n if (! --active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n } else {\n execute();\n }\n}\n//# sourceMappingURL=combineLatest.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Config } from '../../../common/config/public/Config';\nimport { Title } from '@angular/platform-browser';\nimport { SearchQueryParserService } from '../ui/gallery/search/search-query-parser.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/platform-browser\";\nimport * as i2 from \"../ui/gallery/search/search-query-parser.service\";\nexport let PiTitleService = /*#__PURE__*/(() => {\n class PiTitleService {\n constructor(titleService, searchQueryParserService) {\n this.titleService = titleService;\n this.searchQueryParserService = searchQueryParserService;\n this.lastNonMedia = null;\n }\n setTitle(title) {\n if (title) {\n this.titleService.setTitle(Config.Server.applicationTitle + ' - ' + title);\n } else {\n this.titleService.setTitle(Config.Server.applicationTitle);\n }\n }\n setSearchTitle(searchQuery) {\n let query = searchQuery;\n if (typeof searchQuery === 'string') {\n query = JSON.parse(searchQuery);\n }\n this.lastNonMedia = this.searchQueryParserService.stringify(query);\n this.setTitle(this.lastNonMedia);\n }\n setDirectoryTitle(path) {\n this.lastNonMedia = path;\n this.setTitle(this.lastNonMedia);\n }\n setMediaTitle(media) {\n this.setTitle(media.getReadableRelativePath());\n }\n setLastNonMedia() {\n if (this.lastNonMedia) {\n this.setTitle(this.lastNonMedia);\n }\n }\n }\n PiTitleService.ɵfac = function PiTitleService_Factory(t) {\n return new (t || PiTitleService)(i0.ɵɵinject(i1.Title), i0.ɵɵinject(i2.SearchQueryParserService));\n };\n PiTitleService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: PiTitleService,\n factory: PiTitleService.ɵfac,\n providedIn: 'root'\n });\n return PiTitleService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Notification } from '../Notification';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function materialize() {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n subscriber.next(Notification.createNext(value));\n }, () => {\n subscriber.next(Notification.createComplete());\n subscriber.complete();\n }, err => {\n subscriber.next(Notification.createError(err));\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=materialize.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, noop));\n });\n}\n//# sourceMappingURL=ignoreElements.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { OperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { innerFrom } from './innerFrom';\nexport function onErrorResumeNext(...sources) {\n const nextSources = argsOrArgArray(sources);\n return new Observable(subscriber => {\n let sourceIndex = 0;\n const subscribeNext = () => {\n if (sourceIndex < nextSources.length) {\n let nextSource;\n try {\n nextSource = innerFrom(nextSources[sourceIndex++]);\n } catch (err) {\n subscribeNext();\n return;\n }\n const innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop);\n nextSource.subscribe(innerSubscriber);\n innerSubscriber.add(subscribeNext);\n } else {\n subscriber.complete();\n }\n };\n subscribeNext();\n });\n}\n//# sourceMappingURL=onErrorResumeNext.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { exhaustMap } from './exhaustMap';\nimport { identity } from '../util/identity';\nexport function exhaustAll() {\n return exhaustMap(identity);\n}\n//# sourceMappingURL=exhaustAll.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"export function createErrorClass(createImpl) {\n const _super = instance => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { NetworkService } from '../../model/network/network.service';\nimport { BehaviorSubject } from 'rxjs';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"../../model/network/network.service\";\nexport let AlbumsService = /*#__PURE__*/(() => {\n class AlbumsService {\n constructor(networkService) {\n this.networkService = networkService;\n this.albums = new BehaviorSubject(null);\n }\n getAlbums() {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.albums.next((yield _this.networkService.getJson('/albums')).sort((a, b) => a.name.localeCompare(b.name)));\n })();\n }\n deleteAlbum(album) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n yield _this2.networkService.deleteJson('/albums/' + album.id);\n yield _this2.getAlbums();\n })();\n }\n addSavedSearch(name, searchQuery) {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n yield _this3.networkService.putJson('/albums/saved-searches', {\n name,\n searchQuery\n });\n yield _this3.getAlbums();\n })();\n }\n }\n AlbumsService.ɵfac = function AlbumsService_Factory(t) {\n return new (t || AlbumsService)(i0.ɵɵinject(i1.NetworkService));\n };\n AlbumsService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: AlbumsService,\n factory: AlbumsService.ɵfac\n });\n return AlbumsService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { combineLatest } from '../observable/combineLatest';\nimport { joinAllInternals } from './joinAllInternals';\nexport function combineLatestAll(project) {\n return joinAllInternals(combineLatest, project);\n}\n//# sourceMappingURL=combineLatestAll.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { innerFrom } from '../observable/innerFrom';\nexport function distinct(keySelector, flushes) {\n return operate((source, subscriber) => {\n const distinctKeys = new Set();\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const key = keySelector ? keySelector(value) : value;\n if (!distinctKeys.has(key)) {\n distinctKeys.add(key);\n subscriber.next(value);\n }\n }));\n flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, () => distinctKeys.clear(), noop));\n });\n}\n//# sourceMappingURL=distinct.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"/***************************************************************************************************\r\n * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.\r\n */\nimport '@angular/localize/init';\n/**\r\n * This file includes polyfills needed by Angular and is loaded before the app.\r\n * You can add your own extra polyfills to this file.\r\n *\r\n * This file is divided into 2 sections:\r\n * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\r\n * 2. Application imports. Files imported after ZoneJS that should be loaded before your main\r\n * file.\r\n *\r\n * The current setup is for so-called \"evergreen\" browsers; the last versions of browsers that\r\n * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\r\n * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\r\n *\r\n * Learn more in https://angular.io/guide/browser-support\r\n */\n/***************************************************************************************************\r\n * BROWSER POLYFILLS\r\n */\n/**\r\n * IE11 requires the following for NgClass support on SVG elements\r\n */\n// import 'classlist.js'; // Run `npm install --save classlist.js`.\n/**\r\n * Web Animations `@angular/platform-browser/animations`\r\n * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.\r\n * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).\r\n */\n// import 'web-animations-js'; // Run `npm install --save web-animations-js`.\n/**\r\n * By default, zone.js will patch all possible macroTask and DomEvents\r\n * user can disable parts of macroTask/DomEvents patch by setting following flags\r\n * because those flags need to be set before `zone.js` being loaded, and webpack\r\n * will put import in the top of bundle, so user need to create a separate file\r\n * in this directory (for example: zone-flags.ts), and put the following flags\r\n * into that file, and then add the following code before importing zone.js.\r\n * import './zone-flags';\r\n *\r\n * The flags allowed in zone-flags.ts are listed here.\r\n *\r\n * The following flags will work for all browsers.\r\n *\r\n * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame\r\n * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick\r\n * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames\r\n *\r\n * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js\r\n * with the following flag, it will bypass `zone.js` patch for IE/Edge\r\n *\r\n * (window as any).__Zone_enable_cross_context_check = true;\r\n *\r\n */\n/***************************************************************************************************\r\n * Zone JS is required by default for Angular itself.\r\n */\nimport 'zone.js'; // Included with Angular CLI.\n/***************************************************************************************************\r\n * APPLICATION IMPORTS\r\n */","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMapTo(innerObservable, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap(() => innerObservable, resultSelector, concurrent);\n }\n if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return mergeMap(() => innerObservable, concurrent);\n}\n//# sourceMappingURL=mergeMapTo.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { mergeMap } from './mergeMap';\nimport { toArray } from './toArray';\nexport function joinAllInternals(joinFn, project) {\n return pipe(toArray(), mergeMap(sources => joinFn(sources)), project ? mapOneOrManyArgs(project) : identity);\n}\n//# sourceMappingURL=joinAllInternals.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { raceInit } from '../observable/race';\nimport { operate } from '../util/lift';\nimport { identity } from '../util/identity';\nexport function raceWith(...otherSources) {\n return !otherSources.length ? identity : operate((source, subscriber) => {\n raceInit([source, ...otherSources])(subscriber);\n });\n}\n//# sourceMappingURL=raceWith.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { Router } from '@angular/router';\nimport { ShareService } from '../ui/gallery/share.service';\nimport { Config } from '../../../common/config/public/Config';\nimport { NavigationLinkTypes } from '../../../common/config/public/ClientConfig';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"../ui/gallery/share.service\";\nexport let NavigationService = /*#__PURE__*/(() => {\n class NavigationService {\n constructor(router, shareService) {\n this.router = router;\n this.shareService = shareService;\n }\n isLoginPage() {\n return this.router.isActive('login', {\n paths: 'exact',\n queryParams: 'exact',\n fragment: 'ignored',\n matrixParams: 'ignored'\n }) || this.router.isActive('shareLogin', {\n paths: 'exact',\n queryParams: 'ignored',\n fragment: 'ignored',\n matrixParams: 'ignored'\n });\n }\n toLogin() {\n var _this = this;\n return _asyncToGenerator(function* () {\n yield _this.shareService.wait();\n if (_this.shareService.isSharing()) {\n return _this.router.navigate(['shareLogin'], {\n queryParams: {\n sk: _this.shareService.getSharingKey()\n }\n });\n } else {\n return _this.router.navigate(['login']);\n }\n })();\n }\n toDefault() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n yield _this2.shareService.wait();\n if (_this2.shareService.isSharing()) {\n return _this2.router.navigate(['share', _this2.shareService.getSharingKey()]);\n } else {\n if (Config.Gallery.NavBar.links && Config.Gallery.NavBar.links.length > 0) {\n switch (Config.Gallery.NavBar.links[0].type) {\n case NavigationLinkTypes.gallery:\n return _this2.router.navigate(['gallery', '']);\n case NavigationLinkTypes.albums:\n return _this2.router.navigate(['albums', '']);\n case NavigationLinkTypes.faces:\n return _this2.router.navigate(['faces', '']);\n case NavigationLinkTypes.search:\n return _this2.router.navigate(['search', JSON.stringify(Config.Gallery.NavBar.links[0].SearchQuery)]);\n }\n }\n return _this2.router.navigate(['gallery', '']);\n }\n })();\n }\n toGallery() {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n yield _this3.shareService.wait();\n if (_this3.shareService.isSharing()) {\n return _this3.router.navigate(['share', _this3.shareService.getSharingKey()]);\n } else {\n return _this3.router.navigate(['gallery', '']);\n }\n })();\n }\n search(searchText) {\n var _this4 = this;\n return _asyncToGenerator(function* () {\n return _this4.router.navigate(['search', searchText]);\n })();\n }\n }\n NavigationService.ɵfac = function NavigationService_Factory(t) {\n return new (t || NavigationService)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.ShareService));\n };\n NavigationService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: NavigationService,\n factory: NavigationService.ɵfac\n });\n return NavigationService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n }\n return new Observable(subscriber => {\n const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e);\n const retValue = addHandler(handler);\n return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined;\n });\n}\n//# sourceMappingURL=fromEventPattern.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import _asyncToGenerator from \"E:/work/pigallery2/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { AuthenticationService } from './model/network/authentication.service';\nimport { Router } from '@angular/router';\nimport { Config } from '../../common/config/public/Config';\nimport { Title } from '@angular/platform-browser';\nimport { ShareService } from './ui/gallery/share.service';\nimport 'hammerjs';\nimport { NavigationService } from './model/navigation.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"./model/network/authentication.service\";\nimport * as i3 from \"./ui/gallery/share.service\";\nimport * as i4 from \"./model/navigation.service\";\nimport * as i5 from \"@angular/platform-browser\";\nexport let AppComponent = /*#__PURE__*/(() => {\n class AppComponent {\n constructor(router, authenticationService, shareService, navigation, title) {\n this.router = router;\n this.authenticationService = authenticationService;\n this.shareService = shareService;\n this.navigation = navigation;\n this.title = title;\n this.subscription = null;\n }\n ngOnInit() {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.title.setTitle(Config.Server.applicationTitle);\n yield _this.shareService.wait();\n _this.subscription = _this.authenticationService.user.subscribe(() => {\n if (_this.authenticationService.isAuthenticated()) {\n if (_this.navigation.isLoginPage()) {\n return _this.navigation.toDefault();\n }\n } else {\n if (!_this.navigation.isLoginPage()) {\n return _this.navigation.toLogin();\n }\n }\n });\n })();\n }\n ngOnDestroy() {\n if (this.subscription != null) {\n this.subscription.unsubscribe();\n }\n }\n }\n AppComponent.ɵfac = function AppComponent_Factory(t) {\n return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AuthenticationService), i0.ɵɵdirectiveInject(i3.ShareService), i0.ɵɵdirectiveInject(i4.NavigationService), i0.ɵɵdirectiveInject(i5.Title));\n };\n AppComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: AppComponent,\n selectors: [[\"app-pi-gallery2\"]],\n decls: 1,\n vars: 0,\n template: function AppComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"router-outlet\");\n }\n },\n dependencies: [i1.RouterOutlet],\n encapsulation: 2\n });\n return AppComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n//# sourceMappingURL=subscribeOn.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n//# sourceMappingURL=isIterable.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport let Subject = /*#__PURE__*/(() => {\n class Subject extends Observable {\n constructor() {\n super();\n this.closed = false;\n this.currentObservers = null;\n this.observers = [];\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n next(value) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n error(err) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n }\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n }\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n }\n get observed() {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n _trySubscribe(subscriber) {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n _innerSubscribe(subscriber) {\n const {\n hasError,\n isStopped,\n observers\n } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n _checkFinalizedStatuses(subscriber) {\n const {\n hasError,\n thrownError,\n isStopped\n } = this;\n if (hasError) {\n subscriber.error(thrownError);\n } else if (isStopped) {\n subscriber.complete();\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n }\n Subject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n})();\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n }\n error(err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n }\n complete() {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n _subscribe(subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n }\n}\n//# sourceMappingURL=Subject.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user