mirror of https://github.com/abpframework/abp.git
594 changed files with 14910 additions and 13680 deletions
@ -1,10 +1,29 @@ |
|||
# ABP v1.0 Has Been Finally Released! |
|||
|
|||
Today is the big day! After ~3 years of continuous development, first stable ABP release, v1.0, has been released. Thanks to everyone contributed to the project or tried it so far. |
|||
 |
|||
|
|||
Today is the big day! After ~3 years of continuous development, first stable ABP release, 1.0, has been released. Thanks to everyone contributed to the project or tried it so far. |
|||
|
|||
Start playing with the new ABP framework now: [abp.io/get-started](https://abp.io/get-started) |
|||
|
|||
 |
|||
|
|||
Here, a few GitHub & NuGet statistics about the project: |
|||
|
|||
* 2,360 stars. |
|||
* 5,917 commits. |
|||
* 72 contributors. |
|||
* 1,136 issues were closed, 276 open. |
|||
* 566 PRs were closed, 5 open. |
|||
* 39 releases. |
|||
* 122,795 downloads on NuGet. |
|||
|
|||
There was an excellent demand even before the first release. |
|||
|
|||
## Road Map |
|||
|
|||
... |
|||
The first priority is to complete the documentation, since there are still a lot of missing documents for the framework features & the modules. Then we will continue to work on the issues on GitHub, based on the labeled priorities. |
|||
|
|||
See the [GitHub milestone items](https://github.com/abpframework/abp/milestones). |
|||
|
|||
ABP is a community-driven project. So, we are prioritizing the issues mostly based on the community feedback and demand. |
|||
|
After Width: | Height: | Size: 105 KiB |
@ -0,0 +1,27 @@ |
|||
const glob = require('glob'); |
|||
var path = require('path'); |
|||
const childProcess = require('child_process'); |
|||
|
|||
const gulp = pkgJsonPath => { |
|||
try { |
|||
console.log('Running the yarn command... Cwd: ' + pkgJsonPath); |
|||
childProcess.execSync(`yarn`, { cwd: pkgJsonPath }); |
|||
console.log('Running the gulp command...'); |
|||
return childProcess.execSync(`gulp`, { cwd: pkgJsonPath, stdio: 'inherit' }); |
|||
} catch (error) { |
|||
console.log('exec error: ' + error.message); |
|||
process.exit(error.status); |
|||
} |
|||
}; |
|||
|
|||
const folder = process.argv[2] || '.'; |
|||
|
|||
glob(folder + '/**/package.json', {}, (er, files) => { |
|||
files.forEach(file => { |
|||
if (file.includes('node_modules')) { |
|||
return; |
|||
} |
|||
|
|||
gulp(file.replace('/package.json', '')); |
|||
}); |
|||
}); |
|||
File diff suppressed because one or more lines are too long
@ -1,16 +1,2 @@ |
|||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@abp/ng.core"),require("@angular/core"),require("@angular/router"),require("@abp/ng.theme.shared")):"function"==typeof define&&define.amd?define("@abp/ng.account.config",["exports","@abp/ng.core","@angular/core","@angular/router","@abp/ng.theme.shared"],r):r(((e=e||self).abp=e.abp||{},e.abp.ng=e.abp.ng||{},e.abp.ng.account=e.abp.ng.account||{},e.abp.ng.account.config={}),e.ng_core,e.ng.core,e.ng.router,e.ng_theme_shared)}(this,(function(e,r,n,o,t){"use strict"; |
|||
/*! ***************************************************************************** |
|||
Copyright (c) Microsoft Corporation. All rights reserved. |
|||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
|||
this file except in compliance with the License. You may obtain a copy of the |
|||
License at http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
|||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
|||
MERCHANTABLITY OR NON-INFRINGEMENT. |
|||
|
|||
See the Apache Version 2.0 License for specific language governing permissions |
|||
and limitations under the License. |
|||
***************************************************************************** */var c=function(){return(c=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++)for(var t in r=arguments[n])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}).apply(this,arguments)};var a=function(){function e(e,n){this.router=e,this.restService=n,r.addAbpRoutes({name:"AbpAccount::Menu:Account",path:"account",invisible:!0,layout:"application",children:[{path:"login",name:"AbpAccount::Login",order:1},{path:"register",name:"AbpAccount::Register",order:2},{path:"manage-profile",name:"AbpAccount::ManageYourProfile",order:3}]})}return e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.Router},{type:r.RestService}]},e.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(o.Router),n.ɵɵinject(r.RestService))},token:e,providedIn:"root"}),e}();function u(e){return c({redirectUrl:"/"},e)}var i=new n.InjectionToken("ACCOUNT_OPTIONS"),p=r.noop,d=function(){function e(){}return e.forRoot=function(r){return void 0===r&&(r={}),{ngModule:e,providers:[{provide:i,useValue:r},{provide:"ACCOUNT_OPTIONS",useFactory:u,deps:[i]}]}},e.decorators=[{type:n.NgModule,args:[{imports:[r.CoreModule,t.ThemeSharedModule],providers:[{provide:n.APP_INITIALIZER,multi:!0,deps:[a],useFactory:p}]}]}],e}();e.ACCOUNT_OPTIONS=i,e.AccountConfigModule=d,e.AccountConfigService=a,e.accountOptionsFactory=u,Object.defineProperty(e,"__esModule",{value:!0})})); |
|||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@abp/ng.core"),require("@angular/core"),require("@angular/router"),require("@abp/ng.theme.shared")):"function"==typeof define&&define.amd?define("@abp/ng.account.config",["exports","@abp/ng.core","@angular/core","@angular/router","@abp/ng.theme.shared"],r):r(((e=e||self).abp=e.abp||{},e.abp.ng=e.abp.ng||{},e.abp.ng.account=e.abp.ng.account||{},e.abp.ng.account.config={}),e.ng_core,e.ng.core,e.ng.router,e.ng_theme_shared)}(this,function(e,r,n,o,t){"use strict";var c=function(){return(c=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++)for(var t in r=arguments[n])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}).apply(this,arguments)};var a=function(){function e(e,n){this.router=e,this.restService=n,r.addAbpRoutes({name:"AbpAccount::Menu:Account",path:"account",invisible:!0,layout:"application",children:[{path:"login",name:"AbpAccount::Login",order:1},{path:"register",name:"AbpAccount::Register",order:2},{path:"manage-profile",name:"AbpAccount::ManageYourProfile",order:3}]})}return e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.Router},{type:r.RestService}]},e.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(o.Router),n.ɵɵinject(r.RestService))},token:e,providedIn:"root"}),e}();function u(e){return c({redirectUrl:"/"},e)}var i=new n.InjectionToken("ACCOUNT_OPTIONS"),p=r.noop,d=function(){function e(){}return e.forRoot=function(r){return void 0===r&&(r={}),{ngModule:e,providers:[{provide:i,useValue:r},{provide:"ACCOUNT_OPTIONS",useFactory:u,deps:[i]}]}},e.decorators=[{type:n.NgModule,args:[{imports:[r.CoreModule,t.ThemeSharedModule],providers:[{provide:n.APP_INITIALIZER,multi:!0,deps:[a],useFactory:p}]}]}],e}();e.ACCOUNT_OPTIONS=i,e.AccountConfigModule=d,e.AccountConfigService=a,e.accountOptionsFactory=u,Object.defineProperty(e,"__esModule",{value:!0})}); |
|||
//# sourceMappingURL=abp-ng.account.config.umd.min.js.map
|
|||
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
{"version":3,"file":"abp-ng.account.config.js","sources":["ng://@abp/ng.account.config/lib/services/account-config.service.ts","ng://@abp/ng.account.config/lib/account-config.module.ts"],"sourcesContent":["import { eLayoutType, RestService, addAbpRoutes } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountConfigService {\n constructor(private router: Router, private restService: RestService) {\n addAbpRoutes({\n name: 'AbpAccount::Menu:Account',\n path: 'account',\n invisible: true,\n layout: eLayoutType.application,\n children: [\n { path: 'login', name: 'AbpAccount::Login', order: 1 },\n { path: 'register', name: 'AbpAccount::Register', order: 2 },\n { path: 'manage-profile', name: 'AbpAccount::ManageYourProfile', order: 3 },\n ],\n });\n }\n}\n","import { CoreModule, noop } from '@abp/ng.core';\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\nimport { APP_INITIALIZER, InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\nimport { AccountConfigService } from './services/account-config.service';\n\nexport interface AccountConfigOptions {\n redirectUrl?: string;\n}\n\nexport function accountOptionsFactory(options: AccountConfigOptions) {\n return {\n redirectUrl: '/',\n ...options,\n };\n}\n\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\n\n@NgModule({\n imports: [CoreModule, ThemeSharedModule],\n providers: [{ provide: APP_INITIALIZER, multi: true, deps: [AccountConfigService], useFactory: noop }],\n})\nexport class AccountConfigModule {\n static forRoot(options = {} as AccountConfigOptions): ModuleWithProviders {\n return {\n ngModule: AccountConfigModule,\n providers: [\n { provide: ACCOUNT_OPTIONS, useValue: options },\n {\n provide: 'ACCOUNT_OPTIONS',\n useFactory: accountOptionsFactory,\n deps: [ACCOUNT_OPTIONS],\n },\n ],\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA,MAOa,oBAAoB;;;;;IAC/B,YAAoB,MAAc,EAAU,WAAwB;QAAhD,WAAM,GAAN,MAAM,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAa;QAClE,YAAY,CAAC;YACX,IAAI,EAAE,0BAA0B;YAChC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,IAAI;YACf,MAAM;YACN,QAAQ,EAAE;gBACR,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE;gBACtD,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC5D,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,CAAC,EAAE;aAC5E;SACF,CAAC,CAAC;KACJ;;;YAhBF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;YAJQ,MAAM;YAFO,WAAW;;;;;;;;IAQnB,sCAAsB;;;;;IAAE,2CAAgC;;;;;;;ACRtE;;;AAKA,mCAEC;;;IADC,2CAAqB;;;;;;AAGvB,SAAgB,qBAAqB,CAAC,OAA6B;IACjE,uBACE,WAAW,EAAE,GAAG,IACb,OAAO,EACV;CACH;;AAED,MAAa,eAAe,GAAG,IAAI,cAAc,CAAC,iBAAiB,CAAC;WAI6B,IAAI;AAErG,MAAa,mBAAmB;;;;;IAC9B,OAAO,OAAO,CAAC,OAAO,sBAAG,EAAE,EAAwB;QACjD,OAAO;YACL,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE;gBAC/C;oBACE,OAAO,EAAE,iBAAiB;oBAC1B,UAAU,EAAE,qBAAqB;oBACjC,IAAI,EAAE,CAAC,eAAe,CAAC;iBACxB;aACF;SACF,CAAC;KACH;;;YAjBF,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;gBACxC,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,UAAU,IAAM,EAAE,CAAC;aACvG;;;;;;;;;;;;;;;"} |
|||
{"version":3,"file":"abp-ng.account.config.js","sources":["ng://@abp/ng.account.config/lib/services/account-config.service.ts","ng://@abp/ng.account.config/lib/account-config.module.ts"],"sourcesContent":["import { eLayoutType, RestService, addAbpRoutes } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountConfigService {\r\n constructor(private router: Router, private restService: RestService) {\r\n addAbpRoutes({\r\n name: 'AbpAccount::Menu:Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [\r\n { path: 'login', name: 'AbpAccount::Login', order: 1 },\r\n { path: 'register', name: 'AbpAccount::Register', order: 2 },\r\n { path: 'manage-profile', name: 'AbpAccount::ManageYourProfile', order: 3 },\r\n ],\r\n });\r\n }\r\n}\r\n","import { CoreModule, noop } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { APP_INITIALIZER, InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { AccountConfigService } from './services/account-config.service';\r\n\r\nexport interface AccountConfigOptions {\r\n redirectUrl?: string;\r\n}\r\n\r\nexport function accountOptionsFactory(options: AccountConfigOptions) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n\r\n@NgModule({\r\n imports: [CoreModule, ThemeSharedModule],\r\n providers: [{ provide: APP_INITIALIZER, multi: true, deps: [AccountConfigService], useFactory: noop }],\r\n})\r\nexport class AccountConfigModule {\r\n static forRoot(options = {} as AccountConfigOptions): ModuleWithProviders {\r\n return {\r\n ngModule: AccountConfigModule,\r\n providers: [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: accountOptionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;AAAA,MAOa,oBAAoB;;;;;IAC/B,YAAoB,MAAc,EAAU,WAAwB;QAAhD,WAAM,GAAN,MAAM,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAa;QAClE,YAAY,CAAC;YACX,IAAI,EAAE,0BAA0B;YAChC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,IAAI;YACf,MAAM;YACN,QAAQ,EAAE;gBACR,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE;gBACtD,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC5D,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,CAAC,EAAE;aAC5E;SACF,CAAC,CAAC;KACJ;;;YAhBF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;YAJQ,MAAM;YAFO,WAAW;;;;;;;;IAQnB,sCAAsB;;;;;IAAE,2CAAgC;;;;;;;ACRtE;;;AAKA,mCAEC;;;IADC,2CAAqB;;;;;;AAGvB,SAAgB,qBAAqB,CAAC,OAA6B;IACjE,uBACE,WAAW,EAAE,GAAG,IACb,OAAO,EACV;CACH;;AAED,MAAa,eAAe,GAAG,IAAI,cAAc,CAAC,iBAAiB,CAAC;WAI6B,IAAI;AAErG,MAAa,mBAAmB;;;;;IAC9B,OAAO,OAAO,CAAC,OAAO,sBAAG,EAAE,EAAwB;QACjD,OAAO;YACL,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE;gBAC/C;oBACE,OAAO,EAAE,iBAAiB;oBAC1B,UAAU,EAAE,qBAAqB;oBACjC,IAAI,EAAE,CAAC,eAAe,CAAC;iBACxB;aACF;SACF,CAAC;KACH;;;YAjBF,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;gBACxC,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,UAAU,IAAM,EAAE,CAAC;aACvG;;;;;;;;;;;;;;;"} |
|||
@ -1 +1 @@ |
|||
{"version":3,"file":"abp-ng.account.config.js","sources":["ng://@abp/ng.account.config/lib/services/account-config.service.ts","ng://@abp/ng.account.config/lib/account-config.module.ts"],"sourcesContent":["import { eLayoutType, RestService, addAbpRoutes } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountConfigService {\n constructor(private router: Router, private restService: RestService) {\n addAbpRoutes({\n name: 'AbpAccount::Menu:Account',\n path: 'account',\n invisible: true,\n layout: eLayoutType.application,\n children: [\n { path: 'login', name: 'AbpAccount::Login', order: 1 },\n { path: 'register', name: 'AbpAccount::Register', order: 2 },\n { path: 'manage-profile', name: 'AbpAccount::ManageYourProfile', order: 3 },\n ],\n });\n }\n}\n","import { CoreModule, noop } from '@abp/ng.core';\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\nimport { APP_INITIALIZER, InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\nimport { AccountConfigService } from './services/account-config.service';\n\nexport interface AccountConfigOptions {\n redirectUrl?: string;\n}\n\nexport function accountOptionsFactory(options: AccountConfigOptions) {\n return {\n redirectUrl: '/',\n ...options,\n };\n}\n\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\n\n@NgModule({\n imports: [CoreModule, ThemeSharedModule],\n providers: [{ provide: APP_INITIALIZER, multi: true, deps: [AccountConfigService], useFactory: noop }],\n})\nexport class AccountConfigModule {\n static forRoot(options = {} as AccountConfigOptions): ModuleWithProviders {\n return {\n ngModule: AccountConfigModule,\n providers: [\n { provide: ACCOUNT_OPTIONS, useValue: options },\n {\n provide: 'ACCOUNT_OPTIONS',\n useFactory: accountOptionsFactory,\n deps: [ACCOUNT_OPTIONS],\n },\n ],\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;IAQE,8BAAoB,MAAc,EAAU,WAAwB;QAAhD,WAAM,GAAN,MAAM,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAa;QAClE,YAAY,CAAC;YACX,IAAI,EAAE,0BAA0B;YAChC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,IAAI;YACf,MAAM;YACN,QAAQ,EAAE;gBACR,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAA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p-ng.account.config.js","sources":["ng://@abp/ng.account.config/lib/services/account-config.service.ts","ng://@abp/ng.account.config/lib/account-config.module.ts"],"sourcesContent":["import { eLayoutType, RestService, addAbpRoutes } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountConfigService {\r\n constructor(private router: Router, private restService: RestService) {\r\n addAbpRoutes({\r\n name: 'AbpAccount::Menu:Account',\r\n path: 'account',\r\n invisible: true,\r\n layout: eLayoutType.application,\r\n children: [\r\n { path: 'login', name: 'AbpAccount::Login', order: 1 },\r\n { path: 'register', name: 'AbpAccount::Register', order: 2 },\r\n { path: 'manage-profile', name: 'AbpAccount::ManageYourProfile', order: 3 },\r\n ],\r\n });\r\n }\r\n}\r\n","import { CoreModule, noop } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { APP_INITIALIZER, InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { AccountConfigService } from './services/account-config.service';\r\n\r\nexport interface AccountConfigOptions {\r\n redirectUrl?: string;\r\n}\r\n\r\nexport function accountOptionsFactory(options: AccountConfigOptions) {\r\n return {\r\n redirectUrl: '/',\r\n ...options,\r\n };\r\n}\r\n\r\nexport const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');\r\n\r\n@NgModule({\r\n imports: [CoreModule, ThemeSharedModule],\r\n providers: [{ provide: APP_INITIALIZER, multi: true, deps: [AccountConfigService], useFactory: noop }],\r\n})\r\nexport class AccountConfigModule {\r\n static forRoot(options = {} as AccountConfigOptions): ModuleWithProviders {\r\n return {\r\n ngModule: AccountConfigModule,\r\n providers: [\r\n { provide: ACCOUNT_OPTIONS, useValue: options },\r\n {\r\n provide: 'ACCOUNT_OPTIONS',\r\n useFactory: accountOptionsFactory,\r\n deps: [ACCOUNT_OPTIONS],\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n"],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CAAC;KACH;;gBAjBF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;oBACxC,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,UAAU,IAAM,EAAE,CAAC;iBACvG;;IAeD,0BAAC;CAlBD;;;;;;;;;;;;;;"} |
|||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue