Skip to content

Commit

Permalink
Merge pull request #754 from Alfresco/development
Browse files Browse the repository at this point in the history
ACA 1.5 update
  • Loading branch information
suzanadirla authored Oct 25, 2018
2 parents c374e72 + d962965 commit dc9a314
Show file tree
Hide file tree
Showing 470 changed files with 42,446 additions and 27,773 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
src/assets/i18n
e2e
/angular.json
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
27 changes: 17 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
dist: trusty
sudo: required

services:
- docker

addons:
chrome: stable

artifacts:
paths:
- e2e-output
target_paths:
- /${TRAVIS_BUILD_NUMBER}
language: node_js
node_js:
- "8"

- '8'
before_script:
# Disable services enabled by default
- sudo /etc/init.d/postgresql stop

before_install:
- npm install -g npm@latest
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start

- sleep 3
jobs:
include:
- stage: test
script: npm run lint && npm run spellcheck
name: 'Code quality checks'
script:
- npm run lint
- npm run spellcheck
- npm run format:check
- stage: test
name: 'Unit tests'
script:
- npm run test:ci
- bash <(curl -s https://codecov.io/bash) -X gcov
- stage: e2e
name: 'Nginx'
script: npm run build && npm run e2e:docker
- stage: e2e
name: 'Tomcat'
script: npm run build.tomcat.e2e && npm run docker.tomcat.e2e
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single"
"javascript.preferences.quoteStyle": "single",
"javascript.preferences.importModuleSpecifier": "relative",
"typescript.preferences.quoteStyle": "single",
"typescript.preferences.importModuleSpecifier": "relative",
"editor.formatOnSave": true,
"[html]": {
"editor.formatOnSave": false
},
"[json]": {
"editor.formatOnSave": false
}
}
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM nginx:stable-alpine
LABEL version="1.3"
LABEL version="1.4"
LABEL maintainer="Denys Vuika <[email protected]>"

COPY nginx.conf /etc/nginx/nginx.conf

COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh

WORKDIR /usr/share/nginx/html
COPY dist/app/ .

ENTRYPOINT [ "/docker-entrypoint.sh" ]
59 changes: 14 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,24 @@ Isuses can be raised in GitHub or in the Alfresco JIRA project.
Please include a clear description, steps to reproduce and screenshots where appropriate.All issues will be reviewed; bugs will be categorized if reproducible and enhancement/feature suggestions will be considered against existing priorities if the use case serves a general-purpose need.

#### Features added in the latest release
* Application Extensibility - first phase of extensibilty, see [Documentation](https://alfresco.github.io/alfresco-content-app/#/extending) for details.
* Sharing Files - activate and deactivate shared file links.
* Commenting - View and add comments to files and folders.
* Permissions - update file and folder permissions.
* Print - print action from the file viewer
* Improved UX - single click to open folders and files, and right click actions menu
* Application Extensibility - Phase 2
* Document list presets
* File viewer actions
* Create menu button
* Application header
* Metadata card configuration
* see [Documentation](https://alfresco.github.io/alfresco-content-app/#/extending) for details.
* Sharing Files
* Set expiry date for shared links
* Right click action to access shared link settings
* Automatic disable of sharing based on respository configuration

Please refer to the [release notes](https://github.com/Alfresco/alfresco-content-app/releases) for details of all changes.

#### High level features planned for H2 2018 (July - December)
* Library Management - create, find, join and manage file libraries.
* Sharing Files - add an expiry date to a sharable link.
* Application Extensibility - Extension framework to provide simple ways to extend the application.
* Library Management
* For end users: Find, join and favorite libraries
* For managers: Create libraries, manage users and requests to join

### Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for [contributing](https://github.com/Alfresco/alfresco-content-app/blob/master/CONTRIBUTING.md) and then check out one of our issues in the [Jira](https://issues.alfresco.com/jira/projects/ACA) or [GitHub](https://github.com/Alfresco/alfresco-content-app/issues)
Expand All @@ -60,42 +65,6 @@ Want to file a bug, contribute some code, or improve documentation? Excellent! R
| Metadata | The information drawer can be configured in the app.config.json to display metadata information, by default file the Properties Aspect is shown and images will also include EXIF information.|
| Versioning | The version manager provides access and management of previous file versions, and the ability to upload new versions.|


## Development server

Run `npm start` for a dev server. Navigate to `http://localhost:4200/` (opens by default).
The app will automatically reload if you change any of the source files.

## Build

Run `npm run build` to build the project in the production mode. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `npm test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run the local instance of the application packaged into the docker image together with the ACS images:

```sh
npm run build
npm run start:docker
```

The ACA runs on port 4000 inside the docker container.
Run `npm run e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

```sh
npm run e2e
```

When testing is over you can stop all corresponding containers:

```sh
npm run stop:docker
```

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
Expand Down
102 changes: 10 additions & 92 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"output": "/"
},
{
"glob": "**/*",
"input": "node_modules/monaco-editor/min",
"output": "./assets/monaco"
"glob": "**/*.json",
"input": "node_modules/@denysvuika/aca-dev-tools/assets",
"output": "./assets/plugins"
},
{
"glob": "**/*.js",
"input": "node_modules/@ngstack/code-editor/workers",
"output": "./assets/workers"
"glob": "extension.schema.json",
"input": ".",
"output": "./assets"
}
],
"styles": [
Expand All @@ -63,10 +63,9 @@
"src/styles.scss"
],
"scripts": [
"node_modules/pdfjs-dist/build/pdf.js",
"node_modules/pdfjs-dist/lib/shared/compatibility.js",
"node_modules/pdfjs-dist/web/pdf_viewer.js",
"node_modules/moment/min/moment.min.js"
"node_modules/pdfjs-dist/build/pdf.js",
"node_modules/pdfjs-dist/web/pdf_viewer.js",
"node_modules/moment/min/moment.min.js"
]
},
"configurations": {
Expand Down Expand Up @@ -124,7 +123,6 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [
"node_modules/pdfjs-dist/build/pdf.js",
"node_modules/pdfjs-dist/lib/shared/compatibility.js",
"node_modules/pdfjs-dist/web/pdf_viewer.js",
"node_modules/moment/min/moment.min.js"
],
Expand Down Expand Up @@ -154,7 +152,7 @@
"output": "/assets"
},
{
"glob": "pdf.worker.js",
"glob": "pdf.worker.min.js",
"input": "node_modules/pdfjs-dist/build",
"output": "/"
}
Expand Down Expand Up @@ -204,86 +202,6 @@
}
}
}
},
"aca-dev-tools": {
"root": "projects/aca-dev-tools",
"sourceRoot": "projects/aca-dev-tools/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/aca-dev-tools/tsconfig.lib.json",
"project": "projects/aca-dev-tools/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/aca-dev-tools/ng-package.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/aca-dev-tools/src/test.ts",
"tsConfig": "projects/aca-dev-tools/tsconfig.spec.json",
"karmaConfig": "projects/aca-dev-tools/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/aca-dev-tools/tsconfig.lib.json",
"projects/aca-dev-tools/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"adf-extensions": {
"root": "projects/adf-extensions",
"sourceRoot": "projects/adf-extensions/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/adf-extensions/tsconfig.lib.json",
"project": "projects/adf-extensions/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/adf-extensions/ng-package.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/adf-extensions/src/test.ts",
"tsConfig": "projects/adf-extensions/tsconfig.spec.json",
"karmaConfig": "projects/adf-extensions/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/adf-extensions/tsconfig.lib.json",
"projects/adf-extensions/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "app",
Expand Down
13 changes: 13 additions & 0 deletions build-tomcat-e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
npm run build -- --base-href ./

node -e "
const fs = require('fs');
const config = require('./dist/app/app.config.json');
config.baseShareUrl = 'http://localhost:4000/content-app';
fs.writeFileSync(
'./dist/app/app.config.json',
JSON.stringify(config, null, 2)
);
"

jar -cvf docker/tomcat/artifacts/content-app.war -C dist/app/ .
Loading

0 comments on commit dc9a314

Please sign in to comment.