├── .editorconfig ├── .github └── workflows │ ├── main.yml │ └── release.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── LICENSE ├── README.md ├── __tests__ └── app.js ├── app ├── index.js ├── templates │ ├── adf-cli-acs-aps-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── apps │ │ │ │ │ ├── apps.component.html │ │ │ │ │ └── apps.component.ts │ │ │ │ ├── documents │ │ │ │ │ ├── documents.component.html │ │ │ │ │ └── documents.component.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── blob-view.component.ts │ │ │ │ │ ├── bob-view.component.html │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ ├── services │ │ │ │ │ └── preview.service.ts │ │ │ │ ├── start-process │ │ │ │ │ ├── start-process.component.html │ │ │ │ │ └── start-process.component.ts │ │ │ │ ├── stencils.module.ts │ │ │ │ ├── task-details │ │ │ │ │ ├── task-details.component.html │ │ │ │ │ └── task-details.component.ts │ │ │ │ └── tasks │ │ │ │ │ ├── tasks.component.html │ │ │ │ │ └── tasks.component.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ ├── adf-cli-acs-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── documents │ │ │ │ │ ├── documents.component.html │ │ │ │ │ └── documents.component.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ └── services │ │ │ │ │ └── preview.service.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ ├── adf-cli-activiti-community-acs-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── documents │ │ │ │ │ ├── documents.component.html │ │ │ │ │ └── documents.component.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── blob-view.component.ts │ │ │ │ │ ├── bob-view.component.html │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ ├── process-details │ │ │ │ │ ├── process-details.component.html │ │ │ │ │ └── process-details.component.ts │ │ │ │ ├── services │ │ │ │ │ ├── application-deployment.service.ts │ │ │ │ │ └── preview.service.ts │ │ │ │ ├── start-process │ │ │ │ │ ├── start-process.component.html │ │ │ │ │ └── start-process.component.ts │ │ │ │ ├── start-task │ │ │ │ │ ├── start-task.component.html │ │ │ │ │ └── start-task.component.ts │ │ │ │ ├── stencils.module.ts │ │ │ │ ├── task-details │ │ │ │ │ ├── task-details.component.html │ │ │ │ │ └── task-details.component.ts │ │ │ │ └── tasks │ │ │ │ │ ├── tasks.component.html │ │ │ │ │ └── tasks.component.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ ├── adf-cli-activiti-community-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── blob-view.component.ts │ │ │ │ │ ├── bob-view.component.html │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ ├── process-details │ │ │ │ │ ├── process-details.component.html │ │ │ │ │ └── process-details.component.ts │ │ │ │ ├── services │ │ │ │ │ ├── application-deployment.service.ts │ │ │ │ │ └── preview.service.ts │ │ │ │ ├── start-process │ │ │ │ │ ├── start-process.component.html │ │ │ │ │ └── start-process.component.ts │ │ │ │ ├── start-task │ │ │ │ │ ├── start-task.component.html │ │ │ │ │ └── start-task.component.ts │ │ │ │ ├── stencils.module.ts │ │ │ │ ├── task-details │ │ │ │ │ ├── task-details.component.html │ │ │ │ │ └── task-details.component.ts │ │ │ │ └── tasks │ │ │ │ │ ├── tasks.component.html │ │ │ │ │ └── tasks.component.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ ├── adf-cli-apa-acs-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── apps │ │ │ │ │ ├── apps.component.html │ │ │ │ │ └── apps.component.ts │ │ │ │ ├── documents │ │ │ │ │ ├── documents.component.html │ │ │ │ │ └── documents.component.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── blob-view.component.ts │ │ │ │ │ ├── bob-view.component.html │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ ├── services │ │ │ │ │ └── preview.service.ts │ │ │ │ ├── start-process │ │ │ │ │ ├── start-process.component.html │ │ │ │ │ └── start-process.component.ts │ │ │ │ ├── stencils.module.ts │ │ │ │ ├── task-details │ │ │ │ │ ├── task-details.component.html │ │ │ │ │ └── task-details.component.ts │ │ │ │ └── tasks │ │ │ │ │ ├── tasks.component.html │ │ │ │ │ └── tasks.component.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ ├── adf-cli-apa-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ │ └── i18n │ │ │ │ └── en.json │ │ ├── src │ │ │ ├── app.config.json │ │ │ ├── app │ │ │ │ ├── app-layout │ │ │ │ │ ├── app-layout.component.html │ │ │ │ │ ├── app-layout.component.scss │ │ │ │ │ └── app-layout.component.ts │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.scss │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── apps │ │ │ │ │ ├── apps.component.html │ │ │ │ │ └── apps.component.ts │ │ │ │ ├── file-view │ │ │ │ │ ├── blob-view.component.ts │ │ │ │ │ ├── bob-view.component.html │ │ │ │ │ ├── file-view.component.html │ │ │ │ │ ├── file-view.component.scss │ │ │ │ │ └── file-view.component.ts │ │ │ │ ├── home │ │ │ │ │ ├── home.component.html │ │ │ │ │ └── home.component.ts │ │ │ │ ├── login │ │ │ │ │ ├── login.component.html │ │ │ │ │ └── login.component.ts │ │ │ │ ├── services │ │ │ │ │ └── preview.service.ts │ │ │ │ ├── start-process │ │ │ │ │ ├── start-process.component.html │ │ │ │ │ └── start-process.component.ts │ │ │ │ ├── stencils.module.ts │ │ │ │ ├── task-details │ │ │ │ │ ├── task-details.component.html │ │ │ │ │ └── task-details.component.ts │ │ │ │ └── tasks │ │ │ │ │ ├── tasks.component.html │ │ │ │ │ └── tasks.component.ts │ │ │ ├── assets │ │ │ │ ├── .gitkeep │ │ │ │ └── fonts │ │ │ │ │ ├── material-icons │ │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── codepoints │ │ │ │ │ └── material-icons.css │ │ │ │ │ └── muli │ │ │ │ │ ├── Muli-Black.ttf │ │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ │ ├── Muli-Light.ttf │ │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ │ ├── OFL.txt │ │ │ │ │ └── muli.css │ │ │ ├── custom-style.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon-96x96.png │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ └── tsconfig.spec.json │ │ └── tsconfig.json │ └── adf-cli-aps-template │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── proxy.conf.js │ │ ├── resources │ │ └── i18n │ │ │ └── en.json │ │ ├── src │ │ ├── app.config.json │ │ ├── app │ │ │ ├── app-layout │ │ │ │ ├── app-layout.component.html │ │ │ │ ├── app-layout.component.scss │ │ │ │ └── app-layout.component.ts │ │ │ ├── app.component.html │ │ │ ├── app.component.scss │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ ├── app.routes.ts │ │ │ ├── apps │ │ │ │ ├── apps.component.html │ │ │ │ └── apps.component.ts │ │ │ ├── file-view │ │ │ │ ├── blob-view.component.ts │ │ │ │ ├── bob-view.component.html │ │ │ │ ├── file-view.component.html │ │ │ │ ├── file-view.component.scss │ │ │ │ └── file-view.component.ts │ │ │ ├── home │ │ │ │ ├── home.component.html │ │ │ │ └── home.component.ts │ │ │ ├── login │ │ │ │ ├── login.component.html │ │ │ │ └── login.component.ts │ │ │ ├── services │ │ │ │ └── preview.service.ts │ │ │ ├── start-process │ │ │ │ ├── start-process.component.html │ │ │ │ └── start-process.component.ts │ │ │ ├── stencils.module.ts │ │ │ ├── task-details │ │ │ │ ├── task-details.component.html │ │ │ │ └── task-details.component.ts │ │ │ └── tasks │ │ │ │ ├── tasks.component.html │ │ │ │ └── tasks.component.ts │ │ ├── assets │ │ │ ├── .gitkeep │ │ │ └── fonts │ │ │ │ ├── material-icons │ │ │ │ ├── MaterialIcons-Regular.eot │ │ │ │ ├── MaterialIcons-Regular.ijmap │ │ │ │ ├── MaterialIcons-Regular.svg │ │ │ │ ├── MaterialIcons-Regular.ttf │ │ │ │ ├── MaterialIcons-Regular.woff │ │ │ │ ├── MaterialIcons-Regular.woff2 │ │ │ │ ├── README.md │ │ │ │ ├── codepoints │ │ │ │ └── material-icons.css │ │ │ │ └── muli │ │ │ │ ├── Muli-Black.ttf │ │ │ │ ├── Muli-BlackItalic.ttf │ │ │ │ ├── Muli-Bold.ttf │ │ │ │ ├── Muli-BoldItalic.ttf │ │ │ │ ├── Muli-ExtraBold.ttf │ │ │ │ ├── Muli-ExtraBoldItalic.ttf │ │ │ │ ├── Muli-ExtraLight.ttf │ │ │ │ ├── Muli-ExtraLightItalic.ttf │ │ │ │ ├── Muli-Italic.ttf │ │ │ │ ├── Muli-Light.ttf │ │ │ │ ├── Muli-LightItalic.ttf │ │ │ │ ├── Muli-Regular.ttf │ │ │ │ ├── Muli-SemiBold.ttf │ │ │ │ ├── Muli-SemiBoldItalic.ttf │ │ │ │ ├── OFL.txt │ │ │ │ └── muli.css │ │ ├── custom-style.scss │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon-96x96.png │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── test.ts │ │ ├── tsconfig.app.json │ │ └── tsconfig.spec.json │ │ └── tsconfig.json └── utils.js ├── package-lock.json ├── package.json ├── scripts ├── git-tag.sh ├── publish.sh └── update-version.sh └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.md] 11 | trim_trailing_whitespace = false 12 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | 7 | env: 8 | NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} 9 | NPM_REGISTRY_ADDRESS: ${{ secrets.NPM_REGISTRY_ADDRESS }} 10 | 11 | jobs: 12 | release: 13 | name: generator 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/checkout@v3 18 | with: 19 | fetch-depth: 2 20 | - uses: actions/setup-node@v3 21 | with: 22 | node-version-file: '.nvmrc' 23 | cache: 'npm' 24 | - run: ./scripts/git-tag.sh && ./scripts/publish.sh 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /npm-debug.log 2 | /.idea 3 | node_modules 4 | coverage 5 | /temp/ 6 | /e2e-output/ 7 | .history/ 8 | local.log 9 | generator-alfresco-adf-app.iml 10 | /app/templates/**/*/package-lock.json 11 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | 3 | coverage/ 4 | node_modules 5 | temp/ 6 | test/ 7 | 8 | /.editorconfig 9 | /.travis.yml 10 | /gulpfile.js 11 | /.npmignore 12 | 13 | *.tgz 14 | 15 | /assets/ 16 | local.log 17 | generator-alfresco-adf-app.iml 18 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | "/alfresco": { 4 | "target": "http://localhost:8080", 5 | "secure": false, 6 | "changeOrigin": true 7 | }, 8 | "/activiti-app": { 9 | "target": "http://localhost:9999", 10 | "secure": false, 11 | "changeOrigin": true 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { ViewEncapsulation, Component } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/apps/apps.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/apps/apps.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | import { AppDefinitionRepresentationModel } from '@alfresco/adf-process-services'; 4 | 5 | @Component({ 6 | selector: 'app-apps', 7 | templateUrl: './apps.component.html' 8 | }) 9 | export class AppsComponent { 10 | 11 | constructor(private router: Router) { } 12 | 13 | onAppClicked(app: AppDefinitionRepresentationModel) { 14 | this.router.navigate(['/apps', app.id || 0, 'tasks']); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/documents/documents.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 |
13 | 14 | 19 | 20 |
21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/documents/documents.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild, Input } from '@angular/core'; 2 | import { NotificationService } from '@alfresco/adf-core'; 3 | import { DocumentListComponent } from '@alfresco/adf-content-services'; 4 | import { PreviewService } from '../services/preview.service'; 5 | 6 | @Component({ 7 | selector: 'app-documents', 8 | templateUrl: './documents.component.html' 9 | }) 10 | export class DocumentsComponent { 11 | 12 | @Input() 13 | showViewer = false; 14 | 15 | nodeId: string = null; 16 | 17 | @ViewChild('documentList', { static: true }) 18 | documentList: DocumentListComponent; 19 | 20 | constructor(private notificationService: NotificationService, private preview: PreviewService) { 21 | } 22 | 23 | uploadSuccess(event: any) { 24 | this.notificationService.openSnackMessage('File uploaded'); 25 | this.documentList.reload(); 26 | } 27 | 28 | showPreview(event) { 29 | const entry = event.value.entry; 30 | if (entry && entry.isFile) { 31 | this.preview.showResource(entry.id); 32 | } 33 | } 34 | 35 | onGoBack(event: any) { 36 | this.showViewer = false; 37 | this.nodeId = null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html' 6 | }) 7 | export class HomeComponent {} 8 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent {} 8 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/services/preview.service.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Injectable } from '@angular/core'; 19 | import { Router } from '@angular/router'; 20 | 21 | @Injectable() 22 | export class PreviewService { 23 | 24 | public content: Blob = null; 25 | public name: string = null; 26 | 27 | constructor(private router: Router) {} 28 | 29 | showResource(resourceId): void { 30 | this.router.navigate([{ outlets: { overlay: ['files', resourceId, 'view'] } }]); 31 | } 32 | 33 | showBlob(name: string, content: Blob): void { 34 | this.name = name; 35 | this.content = content; 36 | this.router.navigate([{ outlets: { overlay: ['preview', 'blob'] } }]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | import { ProcessInstance } from '@alfresco/adf-process-services'; 4 | 5 | @Component({ 6 | selector: 'app-start-process', 7 | templateUrl: './start-process.component.html' 8 | }) 9 | export class StartProcessComponent implements OnInit { 10 | 11 | appId: string = null; 12 | 13 | constructor(private router: Router, 14 | private route: ActivatedRoute) { } 15 | 16 | ngOnInit() { 17 | this.route.params.subscribe(params => { 18 | if (params.appId && params.appId !== '0') { 19 | this.appId = params.appId; 20 | } else { 21 | this.router.navigate(['/apps']); 22 | } 23 | }); 24 | } 25 | 26 | onProcessStarted(process: ProcessInstance) { 27 | this.router.navigate(['/apps', this.appId || 0, 'tasks']); 28 | } 29 | 30 | onCancelStartProcess() { 31 | this.router.navigate(['/apps', this.appId || 0, 'tasks']); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent { 11 | } 12 | 13 | @Component({ 14 | selector: "custom-stencil-01", 15 | template: `
16 | ADF version of custom Activiti stencil 17 |
` 18 | }) 19 | export class CustomStencil01 extends WidgetComponent { 20 | } 21 | 22 | @NgModule({ 23 | declarations: [CustomEditorComponent, CustomStencil01], 24 | exports: [CustomEditorComponent, CustomStencil01], 25 | }) 26 | export class StencilsModule {} 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks

2 | 3 | 4 | Start new process 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-tasks', 6 | templateUrl: './tasks.component.html' 7 | }) 8 | export class TasksComponent implements OnInit { 9 | 10 | appId: string = null; 11 | 12 | constructor(private router: Router, 13 | private route: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | this.route.params.subscribe(params => { 17 | const applicationId = params['appId']; 18 | if (applicationId && applicationId !== '0') { 19 | this.appId = params['appId']; 20 | } 21 | }); 22 | } 23 | 24 | onRowClick(taskId: string) { 25 | if (taskId) { 26 | this.router.navigate(['/apps', this.appId || 0, 'tasks', taskId]); 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-aps-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-aps-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | "/alfresco": { 4 | "target": "http://localhost:8080", 5 | "secure": false, 6 | "changeOrigin": true 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Component } from '@angular/core'; 19 | 20 | @Component({ 21 | selector: 'app-root', 22 | templateUrl: './app-layout.component.html', 23 | styleUrls: ['./app-layout.component.scss'] 24 | }) 25 | export class AppLayoutComponent { 26 | 27 | constructor() { 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/documents/documents.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 |
13 | 14 | 19 | 20 |
21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Component } from '@angular/core'; 19 | 20 | @Component({ 21 | selector: 'app-home', 22 | templateUrl: './home.component.html' 23 | }) 24 | export class HomeComponent {} 25 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent {} 8 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/app/services/preview.service.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Injectable } from '@angular/core'; 19 | import { Router } from '@angular/router'; 20 | 21 | @Injectable() 22 | export class PreviewService { 23 | 24 | public content: Blob = null; 25 | public name: string = null; 26 | 27 | constructor(private router: Router) {} 28 | 29 | showResource(resourceId): void { 30 | this.router.navigate([{ outlets: { overlay: ['files', resourceId, 'view'] } }]); 31 | } 32 | 33 | showBlob(name: string, content: Blob): void { 34 | this.name = name; 35 | this.content = content; 36 | this.router.navigate([{ outlets: { overlay: ['preview', 'blob'] } }]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-acs-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-acs-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "/auth/admin/realms/myrealm": { 3 | "target": "http://localhost:8080", 4 | "secure": false, 5 | "pathRewrite": { 6 | "^/auth/admin/realms/myrealm": "" 7 | }, 8 | "changeOrigin": true, 9 | "logLevel": "debug" 10 | }, 11 | "/auth/realms/myrealm": { 12 | "target": "http://localhost:8080", 13 | "secure": false, 14 | "pathRewrite": { 15 | "^/auth/realms/myrealm": "" 16 | }, 17 | "changeOrigin": true, 18 | "logLevel": "debug" 19 | }, 20 | "/": { 21 | "target": "http://localhost:8080", 22 | "secure": false, 23 | "changeOrigin": true, 24 | "logLevel": "debug" 25 | }, 26 | "/alfresco": { 27 | "target": "http://localhost:8080", 28 | "secure": false, 29 | "changeOrigin": true 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/documents/documents.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 |
13 | 14 | 19 | 20 |
21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/documents/documents.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild, Input } from '@angular/core'; 2 | import { NotificationService } from '@alfresco/adf-core'; 3 | import { DocumentListComponent } from '@alfresco/adf-content-services'; 4 | import { PreviewService } from '../services/preview.service'; 5 | 6 | @Component({ 7 | selector: 'app-documents', 8 | templateUrl: './documents.component.html' 9 | }) 10 | export class DocumentsComponent { 11 | 12 | @Input() 13 | showViewer = false; 14 | 15 | nodeId: string = null; 16 | 17 | @ViewChild('documentList', { static: true }) 18 | documentList: DocumentListComponent; 19 | 20 | constructor(private notificationService: NotificationService, private preview: PreviewService) { 21 | } 22 | 23 | uploadSuccess() { 24 | this.notificationService.openSnackMessage('File uploaded'); 25 | this.documentList.reload(); 26 | } 27 | 28 | showPreview(event) { 29 | const entry = event.value.entry; 30 | if (entry && entry.isFile) { 31 | this.preview.showResource(entry.id); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | @Component({ 3 | selector: 'app-home', 4 | templateUrl: './home.component.html' 5 | }) 6 | export class HomeComponent { 7 | } 8 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | @Component({ 3 | selector: 'app-login', 4 | templateUrl: './login.component.html' 5 | }) 6 | export class LoginComponent { 7 | } 8 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/process-details/process-details.component.html: -------------------------------------------------------------------------------- 1 |

Process details

2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/process-details/process-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-process-details', 6 | templateUrl: './process-details.component.html' 7 | }) 8 | export class ProcessDetailsComponent implements OnInit { 9 | 10 | processId: string = null; 11 | fileShowed: any = null; 12 | content: any = null; 13 | contentName: any = null; 14 | 15 | constructor(private route: ActivatedRoute) { } 16 | 17 | ngOnInit() { 18 | this.route.params.subscribe(params => { 19 | if (params['processId']) { 20 | this.processId = params['processId']; 21 | } 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-start-process', 6 | templateUrl: './start-process.component.html' 7 | }) 8 | export class StartProcessComponent { 9 | 10 | constructor(private router: Router) { } 11 | 12 | onProcessStarted() { 13 | this.router.navigate(['/community/tasks']); 14 | } 15 | 16 | onCancelStartProcess() { 17 | this.router.navigate(['/community/tasks']); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/start-task/start-task.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/start-task/start-task.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-start-task', 6 | templateUrl: './start-task.component.html' 7 | }) 8 | export class StartTaskComponent { 9 | 10 | constructor(private router: Router) { } 11 | 12 | onTaskStarted() { 13 | this.router.navigate(['/community/tasks']); 14 | } 15 | 16 | onCancelStartTask() { 17 | this.router.navigate(['/community/tasks']); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent { 11 | } 12 | 13 | @Component({ 14 | selector: "custom-stencil-01", 15 | template: `
16 | ADF version of custom Activiti stencil 17 |
` 18 | }) 19 | export class CustomStencil01 extends WidgetComponent { 20 | } 21 | 22 | @NgModule({ 23 | declarations: [CustomEditorComponent, CustomStencil01], 24 | exports: [CustomEditorComponent, CustomStencil01], 25 | }) 26 | export class StencilsModule {} 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/task-details/task-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-task-details', 6 | templateUrl: './task-details.component.html' 7 | }) 8 | export class TaskDetailsComponent implements OnInit { 9 | 10 | taskId: string = null; 11 | fileShowed: any = null; 12 | content: any = null; 13 | contentName: any = null; 14 | 15 | constructor(private route: ActivatedRoute) { 16 | } 17 | 18 | ngOnInit() { 19 | this.route.params.subscribe(params => { 20 | if (params['taskId']) { 21 | this.taskId = params['taskId']; 22 | } 23 | }); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks

2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

Processes

13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | import { TaskListCloudSortingModel, ProcessListCloudSortingModel } from '@alfresco/adf-process-services-cloud'; 4 | 5 | @Component({ 6 | selector: 'app-tasks', 7 | templateUrl: './tasks.component.html' 8 | }) 9 | export class TasksComponent { 10 | 11 | taskListSorting = [new TaskListCloudSortingModel({ orderBy: 'createdDate', direction: 'DESC' })]; 12 | processListSorting = [new ProcessListCloudSortingModel({ orderBy: 'lastModified', direction: 'DESC' })]; 13 | 14 | constructor(private router: Router) { } 15 | 16 | onTaskRowClick(taskId: string) { 17 | if (taskId) { 18 | this.router.navigate(['/community/tasks', taskId]); 19 | } 20 | } 21 | 22 | onProcessRowClick(processId: string) { 23 | if (processId) { 24 | this.router.navigate(['/community/processes', processId]); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | import { AppConfigService } from '@alfresco/adf-core'; 2 | import { ApplicationDeploymentService } from '../app/services/application-deployment.service'; 3 | 4 | export const environment = { 5 | production: true, 6 | appConfigServiceType: AppConfigService, 7 | applicationDeploymentService: ApplicationDeploymentService 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | import { ApplicationDeploymentService } from '../app/services/application-deployment.service'; 7 | 8 | export const environment = { 9 | production: false, 10 | applicationDeploymentService: ApplicationDeploymentService 11 | }; 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-acs-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-acs-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "/auth/admin/realms/myrealm": { 3 | "target": "http://0.0.0.0:8080", 4 | "secure": false, 5 | "pathRewrite": { 6 | "^/auth/admin/realms/myrealm": "" 7 | }, 8 | "changeOrigin": true, 9 | "logLevel": "debug" 10 | }, 11 | "/auth/realms/myrealm": { 12 | "target": "http://0.0.0.0:8080", 13 | "secure": false, 14 | "pathRewrite": { 15 | "^/auth/realms/myrealm": "" 16 | }, 17 | "changeOrigin": true, 18 | "logLevel": "debug" 19 | }, 20 | "/": { 21 | "target": "http://0.0.0.0:8080", 22 | "secure": false, 23 | "changeOrigin": true, 24 | "logLevel": "debug" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html' 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/process-details/process-details.component.html: -------------------------------------------------------------------------------- 1 |

Process details

2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/process-details/process-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-process-details', 6 | templateUrl: './process-details.component.html' 7 | }) 8 | export class ProcessDetailsComponent implements OnInit { 9 | 10 | processId: string = null; 11 | fileShowed: any = null; 12 | content: any = null; 13 | contentName: any = null; 14 | 15 | constructor(private route: ActivatedRoute) { } 16 | 17 | ngOnInit() { 18 | this.route.params.subscribe(params => { 19 | if (params['processId']) { 20 | this.processId = params['processId']; 21 | } 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-start-process', 6 | templateUrl: './start-process.component.html' 7 | }) 8 | export class StartProcessComponent { 9 | 10 | constructor(private router: Router) { } 11 | 12 | onProcessStarted() { 13 | this.router.navigate(['/community/tasks']); 14 | } 15 | 16 | onCancelStartProcess() { 17 | this.router.navigate(['/community/tasks']); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/start-task/start-task.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/start-task/start-task.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-start-task', 6 | templateUrl: './start-task.component.html' 7 | }) 8 | export class StartTaskComponent { 9 | 10 | constructor(private router: Router) { } 11 | 12 | onTaskStarted() { 13 | this.router.navigate(['/community/tasks']); 14 | } 15 | 16 | onCancelStartTask() { 17 | this.router.navigate(['/community/tasks']); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent { 11 | } 12 | 13 | @Component({ 14 | selector: "custom-stencil-01", 15 | template: `
16 | ADF version of custom Activiti stencil 17 |
` 18 | }) 19 | export class CustomStencil01 extends WidgetComponent { 20 | } 21 | 22 | @NgModule({ 23 | declarations: [CustomEditorComponent, CustomStencil01], 24 | exports: [CustomEditorComponent, CustomStencil01], 25 | }) 26 | export class StencilsModule {} 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/task-details/task-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-task-details', 6 | templateUrl: './task-details.component.html' 7 | }) 8 | export class TaskDetailsComponent implements OnInit { 9 | 10 | taskId: string = null; 11 | fileShowed: any = null; 12 | content: any = null; 13 | contentName: any = null; 14 | 15 | constructor(private route: ActivatedRoute) { 16 | } 17 | 18 | ngOnInit() { 19 | this.route.params.subscribe(params => { 20 | if (params['taskId']) { 21 | this.taskId = params['taskId']; 22 | } 23 | }); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks

2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

Processes

13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | import { TaskListCloudSortingModel, ProcessListCloudSortingModel } from '@alfresco/adf-process-services-cloud'; 4 | 5 | @Component({ 6 | selector: 'app-tasks', 7 | templateUrl: './tasks.component.html' 8 | }) 9 | export class TasksComponent { 10 | 11 | taskListSorting = [new TaskListCloudSortingModel({ orderBy: 'createdDate', direction: 'DESC' })]; 12 | processListSorting = [new ProcessListCloudSortingModel({ orderBy: 'lastModified', direction: 'DESC' })]; 13 | 14 | constructor(private router: Router) { } 15 | 16 | onTaskRowClick(taskId: string) { 17 | if (taskId) { 18 | this.router.navigate(['/community/tasks', taskId]); 19 | } 20 | } 21 | 22 | onProcessRowClick(processId: string) { 23 | if (processId) { 24 | this.router.navigate(['/community/processes', processId]); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | import { AppConfigService } from '@alfresco/adf-core'; 2 | import { ApplicationDeploymentService } from '../app/services/application-deployment.service'; 3 | 4 | export const environment = { 5 | production: true, 6 | appConfigServiceType: AppConfigService, 7 | applicationDeploymentService: ApplicationDeploymentService 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | import { ApplicationDeploymentService } from '../app/services/application-deployment.service'; 7 | 8 | export const environment = { 9 | production: false, 10 | applicationDeploymentService: ApplicationDeploymentService 11 | }; 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-activiti-community-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-activiti-community-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "/auth/admin/realms/myrealm": { 3 | "target": "http://localhost:8080", 4 | "secure": false, 5 | "pathRewrite": { 6 | "^/auth/admin/realms/myrealm": "" 7 | }, 8 | "changeOrigin": true, 9 | "logLevel": "debug" 10 | }, 11 | "/auth/realms/myrealm": { 12 | "target": "http://localhost:8080", 13 | "secure": false, 14 | "pathRewrite": { 15 | "^/auth/realms/myrealm": "" 16 | }, 17 | "changeOrigin": true, 18 | "logLevel": "debug" 19 | }, 20 | "/": { 21 | "target": "http://localhost:8080", 22 | "secure": false, 23 | "changeOrigin": true, 24 | "logLevel": "debug" 25 | }, 26 | "/alfresco": { 27 | "target": "http://localhost:8080", 28 | "secure": false, 29 | "changeOrigin": true 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/apps/apps.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/apps/apps.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-apps', 6 | templateUrl: './apps.component.html' 7 | }) 8 | export class AppsComponent { 9 | 10 | constructor(private router: Router) { 11 | } 12 | 13 | onAppClicked(app: any) { 14 | this.router.navigate(['/apps', app.name, 'tasks']); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/documents/documents.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 |
13 | 14 | 19 | 20 |
21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/documents/documents.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild, Input } from '@angular/core'; 2 | import { NotificationService } from '@alfresco/adf-core'; 3 | import { DocumentListComponent } from '@alfresco/adf-content-services'; 4 | import { PreviewService } from '../services/preview.service'; 5 | 6 | @Component({ 7 | selector: 'app-documents', 8 | templateUrl: './documents.component.html' 9 | }) 10 | export class DocumentsComponent { 11 | 12 | @Input() 13 | showViewer = false; 14 | 15 | nodeId: string = null; 16 | 17 | @ViewChild('documentList', { static: true }) 18 | documentList: DocumentListComponent; 19 | 20 | constructor(private notificationService: NotificationService, private preview: PreviewService) { 21 | } 22 | 23 | uploadSuccess(event: any) { 24 | this.notificationService.openSnackMessage('File uploaded'); 25 | this.documentList.reload(); 26 | } 27 | 28 | showPreview(event) { 29 | const entry = event.value.entry; 30 | if (entry && entry.isFile) { 31 | this.preview.showResource(entry.id); 32 | } 33 | } 34 | 35 | onGoBack(event: any) { 36 | this.showViewer = false; 37 | this.nodeId = null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html' 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | 5 | @Component({ 6 | selector: 'app-start-process', 7 | templateUrl: './start-process.component.html' 8 | }) 9 | export class StartProcessComponent implements OnInit { 10 | 11 | appName: string = null; 12 | 13 | constructor(private router: Router, 14 | private route: ActivatedRoute) { } 15 | 16 | ngOnInit() { 17 | this.route.params.subscribe(params => { 18 | if (params.appName) { 19 | this.appName = params.appName; 20 | } else { 21 | this.router.navigate(['/apps']); 22 | } 23 | }); 24 | } 25 | 26 | onProcessStarted() { 27 | this.router.navigate(['/apps', this.appName || 0, 'tasks']); 28 | } 29 | 30 | onCancelStartProcess() { 31 | this.router.navigate(['/apps', this.appName || 0, 'tasks']); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent {} 11 | 12 | @Component({ 13 | selector: "custom-stencil-01", 14 | template: `
15 | ADF version of custom Activiti stencil 16 |
` 17 | }) 18 | export class CustomStencil01 extends WidgetComponent {} 19 | 20 | @NgModule({ 21 | declarations: [CustomEditorComponent, CustomStencil01], 22 | exports: [CustomEditorComponent, CustomStencil01], 23 | }) 24 | export class StencilsModule {} 25 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/task-details/task-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import { PreviewService } from '../services/preview.service'; 4 | 5 | @Component({ 6 | selector: 'app-task-details', 7 | templateUrl: './task-details.component.html' 8 | }) 9 | export class TaskDetailsComponent implements OnInit { 10 | 11 | appName: string = null; 12 | taskId: string = null; 13 | fileShowed: any = null; 14 | content: any = null; 15 | contentName: any = null; 16 | 17 | constructor(private route: ActivatedRoute) { 18 | } 19 | 20 | ngOnInit() { 21 | this.route.params.subscribe(params => { 22 | if (params['appName']) { 23 | this.appName = params['appName']; 24 | } 25 | if (params['taskId']) { 26 | this.taskId = params['taskId']; 27 | } 28 | }); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks > {{ appName }}

2 | 3 | 10 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-tasks', 6 | templateUrl: './tasks.component.html' 7 | }) 8 | export class TasksComponent implements OnInit { 9 | 10 | appName: string = null; 11 | 12 | constructor(private router: Router, 13 | private route: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | this.route.params.subscribe(params => { 17 | const applicationName = params['appName']; 18 | if (applicationName) { 19 | this.appName = params['appName']; 20 | } 21 | }); 22 | } 23 | 24 | onRowClick(taskId: string) { 25 | if (taskId) { 26 | this.router.navigate(['/apps', this.appName || 0, 'tasks', taskId]); 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | import { AppConfigService } from '@alfresco/adf-core'; 2 | 3 | export const environment = { 4 | production: true, 5 | appConfigServiceType: AppConfigService 6 | }; 7 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-acs-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-acs-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "/auth/admin/realms/myrealm": { 3 | "target": "http://0.0.0.0:8080", 4 | "secure": false, 5 | "pathRewrite": { 6 | "^/auth/admin/realms/myrealm": "" 7 | }, 8 | "changeOrigin": true, 9 | "logLevel": "debug" 10 | }, 11 | "/auth/realms/myrealm": { 12 | "target": "http://0.0.0.0:8080", 13 | "secure": false, 14 | "pathRewrite": { 15 | "^/auth/realms/myrealm": "" 16 | }, 17 | "changeOrigin": true, 18 | "logLevel": "debug" 19 | }, 20 | "/": { 21 | "target": "http://0.0.0.0:8080", 22 | "secure": false, 23 | "changeOrigin": true, 24 | "logLevel": "debug" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/apps/apps.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/apps/apps.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-apps', 6 | templateUrl: './apps.component.html' 7 | }) 8 | export class AppsComponent { 9 | 10 | constructor(private router: Router) { 11 | } 12 | 13 | onAppClicked(app: any) { 14 | this.router.navigate(['/apps', app.name, 'tasks']); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html' 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/services/preview.service.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Injectable } from '@angular/core'; 19 | import { Router } from '@angular/router'; 20 | 21 | @Injectable() 22 | export class PreviewService { 23 | 24 | public content: Blob = null; 25 | public name: string = null; 26 | 27 | constructor(private router: Router) {} 28 | 29 | showResource(resourceId): void { 30 | this.router.navigate([{ outlets: { overlay: ['files', resourceId, 'view'] } }]); 31 | } 32 | 33 | showBlob(name: string, content: Blob): void { 34 | this.name = name; 35 | this.content = content; 36 | this.router.navigate([{ outlets: { overlay: ['preview', 'blob'] } }]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | 5 | @Component({ 6 | selector: 'app-start-process', 7 | templateUrl: './start-process.component.html' 8 | }) 9 | export class StartProcessComponent implements OnInit { 10 | 11 | appName: string = null; 12 | 13 | constructor(private router: Router, 14 | private route: ActivatedRoute) { } 15 | 16 | ngOnInit() { 17 | this.route.params.subscribe(params => { 18 | if (params.appName) { 19 | this.appName = params.appName; 20 | } else { 21 | this.router.navigate(['/apps']); 22 | } 23 | }); 24 | } 25 | 26 | onProcessStarted() { 27 | this.router.navigate(['/apps', this.appName || 0, 'tasks']); 28 | } 29 | 30 | onCancelStartProcess() { 31 | this.router.navigate(['/apps', this.appName || 0, 'tasks']); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent { 11 | } 12 | 13 | @Component({ 14 | selector: "custom-stencil-01", 15 | template: `
16 | ADF version of custom Activiti stencil 17 |
` 18 | }) 19 | export class CustomStencil01 extends WidgetComponent { 20 | } 21 | 22 | @NgModule({ 23 | declarations: [CustomEditorComponent, CustomStencil01], 24 | exports: [CustomEditorComponent, CustomStencil01], 25 | }) 26 | export class StencilsModule {} 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/task-details/task-details.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-task-details', 6 | templateUrl: './task-details.component.html' 7 | }) 8 | export class TaskDetailsComponent implements OnInit { 9 | 10 | appName: string = null; 11 | taskId: string = null; 12 | fileShowed: any = null; 13 | content: any = null; 14 | contentName: any = null; 15 | 16 | constructor(private route: ActivatedRoute) { 17 | } 18 | 19 | ngOnInit() { 20 | this.route.params.subscribe(params => { 21 | if (params['appName']) { 22 | this.appName = params['appName']; 23 | } 24 | if (params['taskId']) { 25 | this.taskId = params['taskId']; 26 | } 27 | }); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks > {{ appName }}

2 | 3 | 10 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-tasks', 6 | templateUrl: './tasks.component.html' 7 | }) 8 | export class TasksComponent implements OnInit { 9 | 10 | appName: string = null; 11 | 12 | constructor(private router: Router, 13 | private route: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | this.route.params.subscribe(params => { 17 | const applicationName = params['appName']; 18 | if (applicationName) { 19 | this.appName = params['appName']; 20 | } 21 | }); 22 | } 23 | 24 | onRowClick(taskId: string) { 25 | if (taskId) { 26 | this.router.navigate(['/apps', this.appName || 0, 'tasks', taskId]); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | import { AppConfigService } from '@alfresco/adf-core'; 2 | 3 | export const environment = { 4 | production: true, 5 | appConfigServiceType: AppConfigService 6 | }; 7 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-apa-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-apa-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /src/versions.json 8 | 9 | # dependencies 10 | /node_modules 11 | 12 | # IDEs and editors 13 | /.idea 14 | .project 15 | .classpath 16 | .c9/ 17 | *.launch 18 | .settings/ 19 | *.sublime-workspace 20 | 21 | # IDE - VSCode 22 | .vscode/* 23 | !.vscode/settings.json 24 | !.vscode/tasks.json 25 | !.vscode/launch.json 26 | !.vscode/extensions.json 27 | .history 28 | 29 | # misc 30 | /.angular/cache 31 | /.sass-cache 32 | /connect.lock 33 | /coverage 34 | /libpeerconnection.log 35 | npm-debug.log 36 | testem.log 37 | /typings 38 | /www 39 | 40 | # e2e 41 | /e2e/*.js 42 | /e2e/*.map 43 | /e2e-output 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db 48 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/proxy.conf.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | "/activiti-app": { 4 | "target": "http://localhost:9999", 5 | "secure": false, 6 | "changeOrigin": true 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/resources/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "APP": { 3 | "INFO_DRAWER": { 4 | "TITLE": "Details", 5 | "COMMENTS": "Comments", 6 | "PROPERTIES": "Properties", 7 | "VERSIONS": "Versions" 8 | } 9 | }, 10 | "title": "Welcome" 11 | } 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/app-layout/app-layout.component.scss: -------------------------------------------------------------------------------- 1 | adf-sidenav-layout { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/app-layout/app-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app-layout.component.html', 6 | styleUrls: ['./app-layout.component.scss'] 7 | }) 8 | export class AppLayoutComponent {} 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | router-outlet[name="overlay"] + * { 2 | width: 100%; 3 | height: 100%; 4 | z-index: 999999; 5 | position: absolute; 6 | top: 0; 7 | right: 0; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewEncapsulation } from '@angular/core'; 2 | import { TranslationService, AuthenticationService } from '@alfresco/adf-core'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-root', 7 | templateUrl: './app.component.html', 8 | styleUrls: ['./app.component.scss'], 9 | encapsulation: ViewEncapsulation.None 10 | }) 11 | export class AppComponent { 12 | 13 | constructor(translationService: TranslationService, 14 | private authService: AuthenticationService, 15 | private router: Router) { 16 | translationService.use('en'); 17 | } 18 | 19 | logout() { 20 | this.authService.logout().subscribe(() => { 21 | this.router.navigate(['/login']); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/apps/apps.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/apps/apps.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | import { AppDefinitionRepresentationModel } from '@alfresco/adf-process-services'; 4 | 5 | @Component({ 6 | selector: 'app-apps', 7 | templateUrl: './apps.component.html' 8 | }) 9 | export class AppsComponent { 10 | 11 | constructor(private router: Router) { } 12 | 13 | onAppClicked(app: AppDefinitionRepresentationModel) { 14 | this.router.navigate(['/apps', app.id || 0, 'tasks']); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/file-view/blob-view.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PreviewService } from '../services/preview.service'; 3 | import { Router } from '@angular/router'; 4 | 5 | @Component({ 6 | templateUrl: 'bob-view.component.html' 7 | }) 8 | export class BlobViewComponent { 9 | content: Blob; 10 | name: string; 11 | 12 | constructor(preview: PreviewService, router: Router) { 13 | if (preview.content === null || preview.name === null) { 14 | router.navigate([{ outlets: { overlay: null } }]); 15 | return; 16 | } 17 | 18 | this.content = preview.content; 19 | this.name = preview.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/file-view/bob-view.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/file-view/file-view.component.scss: -------------------------------------------------------------------------------- 1 | .adf-viewer__sidebar { 2 | width: 380px !important; 3 | } 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 |

Please select a feature in the app menu

2 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html' 6 | }) 7 | export class HomeComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-login', 5 | templateUrl: './login.component.html' 6 | }) 7 | export class LoginComponent { 8 | } 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/services/preview.service.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * @license 3 | * Copyright 2016 Alfresco Software, Ltd. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import { Injectable } from '@angular/core'; 19 | import { Router } from '@angular/router'; 20 | 21 | @Injectable() 22 | export class PreviewService { 23 | 24 | public content: Blob = null; 25 | public name: string = null; 26 | 27 | constructor(private router: Router) {} 28 | 29 | showResource(resourceId): void { 30 | this.router.navigate([{ outlets: { overlay: ['files', resourceId, 'view'] } }]); 31 | } 32 | 33 | showBlob(name: string, content: Blob): void { 34 | this.name = name; 35 | this.content = content; 36 | this.router.navigate([{ outlets: { overlay: ['preview', 'blob'] } }]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/start-process/start-process.component.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/start-process/start-process.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-start-process', 6 | templateUrl: './start-process.component.html' 7 | }) 8 | export class StartProcessComponent implements OnInit { 9 | 10 | appId: string = null; 11 | 12 | constructor(private router: Router, 13 | private route: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | this.route.params.subscribe(params => { 17 | if (params.appId && params.appId !== '0') { 18 | this.appId = params.appId; 19 | } else { 20 | this.router.navigate(['/apps']); 21 | } 22 | }); 23 | } 24 | 25 | onProcessStarted() { 26 | this.router.navigate(['/apps', this.appId || 0, 'tasks']); 27 | } 28 | 29 | onCancelStartProcess() { 30 | this.router.navigate(['/apps', this.appId || 0, 'tasks']); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/stencils.module.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | 3 | import { Component, NgModule } from "@angular/core"; 4 | import { WidgetComponent } from "@alfresco/adf-core"; 5 | 6 | @Component({ 7 | selector: "custom-editor", 8 | template: `
Look, I'm a custom editor!
` 9 | }) 10 | export class CustomEditorComponent extends WidgetComponent { 11 | } 12 | 13 | @Component({ 14 | selector: "custom-stencil-01", 15 | template: `
16 | ADF version of custom Activiti stencil 17 |
` 18 | }) 19 | export class CustomStencil01 extends WidgetComponent { 20 | } 21 | 22 | @NgModule({ 23 | declarations: [CustomEditorComponent, CustomStencil01], 24 | exports: [CustomEditorComponent, CustomStencil01], 25 | }) 26 | export class StencilsModule {} 27 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/task-details/task-details.component.html: -------------------------------------------------------------------------------- 1 |

Task details

2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/tasks/tasks.component.html: -------------------------------------------------------------------------------- 1 |

Tasks

2 | 3 | 4 | Start new process 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/app/tasks/tasks.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'app-tasks', 6 | templateUrl: './tasks.component.html' 7 | }) 8 | export class TasksComponent implements OnInit { 9 | 10 | appId: string = null; 11 | 12 | constructor(private router: Router, 13 | private route: ActivatedRoute) { } 14 | 15 | ngOnInit() { 16 | this.route.params.subscribe(params => { 17 | const applicationId = params['appId']; 18 | if (applicationId && applicationId !== '0') { 19 | this.appId = params['appId']; 20 | } 21 | }); 22 | } 23 | 24 | onRowClick(taskId: string) { 25 | if (taskId) { 26 | this.router.navigate(['/apps', this.appId || 0, 'tasks', taskId]); 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/.gitkeep -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/README.md: -------------------------------------------------------------------------------- 1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: 2 | 3 | ```html 4 | 6 | ``` 7 | 8 | Read more in our full usage guide: 9 | http://google.github.io/material-design-icons/#icon-font-for-the-web 10 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/material-icons/material-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Material Icons'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ 6 | src: local('Material Icons'), 7 | local('MaterialIcons-Regular'), 8 | url(MaterialIcons-Regular.woff2) format('woff2'), 9 | url(MaterialIcons-Regular.woff) format('woff'), 10 | url(MaterialIcons-Regular.ttf) format('truetype'); 11 | } 12 | 13 | .material-icons { 14 | font-family: 'Material Icons'; 15 | font-weight: normal; 16 | font-style: normal; 17 | font-size: 24px; /* Preferred icon size */ 18 | display: inline-block; 19 | line-height: 1; 20 | text-transform: none; 21 | letter-spacing: normal; 22 | word-wrap: normal; 23 | white-space: nowrap; 24 | direction: ltr; 25 | 26 | /* Support for all WebKit browsers. */ 27 | -webkit-font-smoothing: antialiased; 28 | /* Support for Safari and Chrome. */ 29 | text-rendering: optimizeLegibility; 30 | 31 | /* Support for Firefox. */ 32 | -moz-osx-font-smoothing: grayscale; 33 | 34 | /* Support for IE. */ 35 | font-feature-settings: 'liga'; 36 | } 37 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Black.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-BlackItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-BlackItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Bold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-BoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraLight.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Italic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Light.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-LightItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-Regular.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-SemiBold.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/assets/fonts/muli/Muli-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false 8 | }; 9 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alfresco/generator-alfresco-adf-app/1252e6b90ac3b6b590b7fa5c0a9c2de0a08181d0/app/templates/adf-cli-aps-template/src/favicon-96x96.png -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /*************************************************************************************************** 22 | * Zone JS is required by Angular itself. 23 | */ 24 | import 'zone.js'; // Included with Angular CLI. 25 | 26 | /** 27 | * Support custom event in IE11 28 | * 29 | */ 30 | (window as any).global = window; 31 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting(), { 26 | teardown: { destroyAfterEach: false } 27 | } 28 | ); 29 | // Then we find all the tests. 30 | const context = require.context('./', true, /\.spec\.ts$/); 31 | // And load the modules. 32 | context.keys().map(context); 33 | // Finally, start Karma to run the tests. 34 | __karma__.start(); 35 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es2020", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts", 15 | "polyfills.ts" 16 | ], 17 | "include": [ 18 | "**/*.spec.ts", 19 | "**/*.d.ts" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /app/templates/adf-cli-aps-template/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "noUnusedLocals": false, 12 | "target": "es2020", 13 | "typeRoots": [ 14 | "node_modules/@types" 15 | ], 16 | "lib": [ 17 | "es2016", 18 | "dom" 19 | ], 20 | "module": "es2015" 21 | }, 22 | "angularCompilerOptions": { 23 | "preserveWhitespaces": false 24 | } 25 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "generator-alfresco-adf-app", 3 | "version": "6.1.1", 4 | "description": "ADF application generator for Yeoman", 5 | "author": "Alfresco Software, Ltd.", 6 | "main": "app/index.js", 7 | "scripts": { 8 | "test": "jest" 9 | }, 10 | "dependencies": { 11 | "generator-alfresco-common": "0.9.27", 12 | "generator-license": "^5.4.0", 13 | "yeoman-generator": "^4.2.0" 14 | }, 15 | "devDependencies": { 16 | "jest": "^29.3.1", 17 | "jest-cli": "^29.3.1", 18 | "yeoman-assert": "3.1.1", 19 | "yeoman-test": "2.0.0" 20 | }, 21 | "jest": { 22 | "testEnvironment": "node", 23 | "testPathIgnorePatterns": [ 24 | "templates", 25 | "temp" 26 | ] 27 | }, 28 | "files": [ 29 | "app" 30 | ], 31 | "license": "MIT" 32 | } 33 | -------------------------------------------------------------------------------- /scripts/git-tag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]') 4 | 5 | echo $VERSION 6 | 7 | echo "git tag -a ${VERSION} -m ${VERSION}" 8 | git config --local user.name "alfresco-build" 9 | git config --local user.email "build@alfresco.com" 10 | git tag -a ${VERSION} -m "${VERSION} [ci skip] " 11 | git remote rm origin 12 | GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/generator-alfresco-adf-app.git 13 | git remote add origin $GITHUB_REPO 14 | git push origin --tags 15 | -------------------------------------------------------------------------------- /scripts/publish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | touch .npmrc 5 | echo 'strict-ssl=true' >> .npmrc 6 | echo 'registry=https://${NPM_REGISTRY_ADDRESS}' >> .npmrc 7 | echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc 8 | 9 | npm install 10 | npm publish 11 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "emitDecoratorMetadata": true, 10 | "experimentalDecorators": true, 11 | "skipLibCheck": true, 12 | "noUnusedLocals": true, 13 | "target": "es2015", 14 | "allowSyntheticDefaultImports": true, 15 | "typeRoots": [ 16 | "node_modules/@types" 17 | ], 18 | "lib": [ 19 | "es2017", 20 | "dom" 21 | ] 22 | }, 23 | "exclude": [ 24 | "lib/config", 25 | "integration", 26 | "scripts", 27 | "assets", 28 | "tools", 29 | "node_modules" 30 | ], 31 | "angularCompilerOptions": { 32 | "fullTemplateTypeCheck": true, 33 | "strictInjectionParameters": true 34 | } 35 | } 36 | --------------------------------------------------------------------------------