OpenSlides/client
FinnStutzenstein 5aef823807 Major cache rewrite:
- Removed the restricted data cache (it wasn't used since OS 3.0)
- unify functions for restricted and full data: Just one function, which
  accteps an optional user_id: If it is None, full data is returned, and
  with a user id given, the restricted data
- More atomic access to redis, especially for:
- Check for data-existance in redis and do an auto-ensure-cache.
- Speedup through hashing of scripts and redis' script cache.
- Save schema version into the redis cache and rebuild, if the version
  changed

Client changes:
- Simplified the ConstantsService
- Fixed bug, when receiving an autoupdate with all_data=True from the
  Server
2019-08-08 08:35:02 +02:00
..
e2e change the global prefix to "os" 2018-09-03 18:13:57 +02:00
src Major cache rewrite: 2019-08-08 08:35:02 +02:00
.editorconfig cleanup and refractor code 2018-08-15 10:19:46 +02:00
.prettierrc Fixed style issues introduced with #4025 2018-11-22 09:52:24 +01:00
angular.json Add pdf webworker and progress bar 2019-08-01 13:23:56 +02:00
browserslist Update to Angular 8.0.6 2019-07-04 14:20:57 +02:00
karma.conf.js Update to Angular 8.0.6 2019-07-04 14:20:57 +02:00
ngsw-config.json Redefine colors for PWA. Fetch fonts for offline usage. 2019-06-26 09:55:05 +02:00
package.json Major cache rewrite: 2019-08-08 08:35:02 +02:00
proxy.conf.json Revert rest fix for proxy.conf.json 2019-01-19 21:59:32 +01:00
README.md Downgrade exceljs to 1.10.0 2019-07-10 20:44:29 +02:00
sed_replacements po2json-tempfix 2019-01-28 16:14:51 +01:00
tsconfig.app.json Add pdf webworker and progress bar 2019-08-01 13:23:56 +02:00
tsconfig.json Update to Angular 8.0.6 2019-07-04 14:20:57 +02:00
tsconfig.spec.json Update to Angular 8.0.6 2019-07-04 14:20:57 +02:00
tsconfig.worker.json Add pdf webworker and progress bar 2019-08-01 13:23:56 +02:00
tslint.json New linting rules and ordering of imports 2019-07-30 09:53:14 +02:00

OpenSlides 3 Client

Prototype application for OpenSlides 3.0 (Client). Currently under constant heavy maintenance.

Development Info

As an Angular project, Angular CLI is highly recommended to create components and services. See https://angular.io/guide/quickstart for details.

Contribution Info

Please respect the code-style defined in .editorconf and .pretierrc.

Code alignment should be automatically corrected by the pre-commit hooks. Adjust your editor to the .editorconfig to avoid surprises. See https://editorconfig.org/ for details.

Pre-Commit Hooks

Before commiting, new code will automatically be aligned to the definitions set in the .prettierrc. Furthermore, new code has to pass linting.

Our pre-commit hooks are: pretty-quick --staged and lint See package.json for details.

Documentation Info

The documentation can be generated by running npm run compodoc. A new web server will be started on http://localhost:8080 Once running, the documentation will be updated automatically.

You can run it on another port, with adding your local port after the command. If no port specified, it will try to use 8080.

Please document new code using JSDoc tags. See https://compodoc.app/guides/jsdoc-tags.html for details.

Development server

Run npm start for a development server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

A running OpenSlides (2.2 or higher) instance is expected on port 8000.

Start OpenSlides as usual using python manage.py start --no-browser --host 0.0.0.0

Translation

We are using ngx-translate for translation purposes. Use npm run extract to extract strings and update elements an with translation functions.

Language files can be found in /src/assets/i18n.

Used software

OpenSlides uses the following software or parts of them: