Skip to content

Commit

Permalink
add support for mobility measures (IRGN) (#225)
Browse files Browse the repository at this point in the history
* remove unused/unsupported plugins

* basic plugin setup

* change the name of the plugins

* plugin names should not include the plugin postfix

* bump roadsign regulation plugin

* bump template plugin

* template variable plugin was not being configured correctly

* bump editor and re-enable package-lock

* use package-lock

* fix Dockerfile

* build a dev version

* bumped roadsign plugin

* bump roadsign plugin

* add besluit plugin

* Get rid of ember-cli-moment-shim and update ember-moment

* update besluit plugin

* fix package-lock

* Add rdfa-date plugin

* update roadsign regulation plugin

* bump decision plugin

this version has the correct label

* upgrade packages

* bump besluit plugin

* bump editor

* remove modal when editing treatment via meeting (#224)

* replace modal component with classes

* add quick fix for fake modal

* bump date plugin

* fix scroll on editor in treatment view

Co-authored-by: Dieter Peirs <[email protected]>

* bump editor

* reenable prod build

* reinstate newer variable plugin

* fix editor profiles

Co-authored-by: Oscar <[email protected]>
Co-authored-by: abeforgit <[email protected]>
Co-authored-by: Dieter Peirs <[email protected]>
  • Loading branch information
4 people authored Jan 19, 2022
1 parent feb3e78 commit 1500c5c
Show file tree
Hide file tree
Showing 12 changed files with 36,501 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- name: install
image: danlynn/ember-cli:3.20.0
commands:
- npm install
- npm ci
- name: lint
image: danlynn/ember-cli:3.20.0
commands:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

*~
.DS_Store
package-lock.json
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
package-lock=false
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM madnificent/ember:3.20.0 as builder
LABEL maintainer="[email protected]"

WORKDIR /app
COPY package.json .
RUN npm install
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN ember build -prod

Expand Down
12 changes: 7 additions & 5 deletions app/components/rdfa-editor-container.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
<div class="container-flex--contain" vocab="{{this.vocab}}" {{did-insert this.setPrefix}}
typeof="{{@typeOfWrappingDiv}}" property="{{@property}}" resource="#">
<Rdfa::RdfaEditor
class="au-c-rdfa-editor"
@profile={{@profile}}
@rdfaEditorInit={{this.rdfaEditorInit}}
@editorOptions={{this.editorOptions}}
@toolbarOptions={{this.toolbarOptions}} />
class="au-c-rdfa-editor"
@profile={{@profile}}
@rdfaEditorInit={{this.rdfaEditorInit}}
@editorOptions={{this.editorOptions}}
@toolbarOptions={{this.toolbarOptions}}
@plugins={{this.plugins}}
/>
</div>
{{/if}}
7 changes: 6 additions & 1 deletion app/components/rdfa-editor-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { tracked } from '@glimmer/tracking';

export default class RdfaEditorContainerComponent extends Component {
@tracked editor;

plugins = [
'roadsign-regulation',
'template-variable',
'besluit',
'rdfa-date',
];
get editorOptions() {
return (
this.args.editorOptions ?? {
Expand Down
10 changes: 0 additions & 10 deletions app/config/editor-profiles.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
export default {
default: [
"rdfa-editor-document-title-plugin",
"rdfa-editor-generic-model-plugin",
"rdfa-editor-standard-template-plugin",
"rdfa-editor-citaten-plugin",
"rdfa-editor-import-snippet-plugin",
"rdfa-editor-roadsign-hint-plugin",
"rdfa-editor-besluit-type-plugin",
],

//GEMEENTE
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001": [
"rdfa-editor-document-title-plugin",
"rdfa-editor-generic-model-plugin",
"rdfa-editor-standard-template-plugin",
"rdfa-editor-citaten-plugin",
"rdfa-editor-import-snippet-plugin",
"rdfa-editor-roadsign-hint-plugin",
"rdfa-editor-besluit-type-plugin",
],

//OCMW
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002": [
"rdfa-editor-document-title-plugin",
"rdfa-editor-generic-model-plugin",
"rdfa-editor-standard-template-plugin",
"rdfa-editor-citaten-plugin",
"rdfa-editor-import-snippet-plugin",
"rdfa-editor-roadsign-hint-plugin",
"rdfa-editor-besluit-type-plugin",

],
Expand All @@ -36,7 +27,6 @@ export default {
"rdfa-editor-citaten-plugin",
"rdfa-editor-import-snippet-plugin",
"rdfa-editor-besluit-type-plugin",
"rdfa-editor-roadsign-hint-plugin"

],
none: []
Expand Down
11 changes: 11 additions & 0 deletions app/styles/_shame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -588,3 +588,14 @@
.au-c-main-container--mock-login {
height: 100%;
}

// Fake modal
.au-c-modal--flat {
z-index: 9997;
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
left: 0;
border-radius: 0;
}
25 changes: 12 additions & 13 deletions app/templates/meetings/edit/treatment.hbs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<AuModal @modalOpen={{true}}
@size="fullscreen"
@closeModal={{this.closeModal}}
@modalTitle={{this.document.title}}
class="au-c-modal--editor"
as |Modal|
>
<Modal.Body>
<div class="au-c-modal au-c-modal--flat is-visible au-c-modal--editor" role="dialog" aria-describedby="au-c-modal-title-" tabindex="-1">
<div class="au-c-modal__header">
<h1 id="au-c-modal-title-" class="au-c-modal__title" tabindex="-1">
{{this.document.title}}
</h1>
</div>
<div class="au-c-modal__body">
{{#if this.documentContainer}}
<div id="panel-2" role="tabpanel" tabindex="0" aria-labelledby="tab-2" class={{if this.uploading "" "au-u-hidden"}}>
<DocumentAttachments @documentContainer={{this.documentContainer}} @decisions={{this.decisions}}/>
</div>
{{/if}}
{{#if this.document}}
<div id="panel-1" role="tabpanel" tabindex="0" aria-labelledby="tab-1" class={{if this.uploading "au-u-hidden" ""}}>
<div id="panel-1" role="tabpanel" tabindex="0" aria-labelledby="tab-1" class={{if this.uploading "au-u-hidden" "au-c-body-container"}}>
<BesluitDocumentContainer class={{if this.uploading ".au-u-hidden" ""}}
@document={{this.document}}
@handleRdfaEditorInit={{this.handleRdfaEditorInit}}
Expand All @@ -21,8 +20,8 @@
/>
</div>
{{/if}}
</Modal.Body>
<Modal.Footer>
</div>
<div class="au-c-modal__footer">
{{#if (feature-flag 'attachments')}}
{{#if this.uploading}}
<AuButtonGroup @inline={{true}} role="tablist" aria-label="editor-tabs">
Expand Down Expand Up @@ -61,6 +60,6 @@
{{t "behandelingVanAgendapunten.cancel"}}
</AuButton>
</AuButtonGroup>
</Modal.Footer>
</AuModal>
</div>
</div>
<ConfirmRouteLeave @enabled={{this.dirty}} @message={{t "behandelingVanAgendapunten.confirmLeaveWithoutSaving"}}/>
8 changes: 8 additions & 0 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ module.exports = function (environment) {
plausibleScript: "{{ANALYTICS_PLAUSIBLE_SCRIPT}}"
}
},
roadsignRegulationPlugin: {
endpoint: "{{MOW_REGISTRY_ENDPOINT}}"
},
templateVariablePlugin: {
endpoint: "{{MOW_REGISTRY_ENDPOINT}}"
},
manual: {
baseUrl: "{{MANUAL_BASE_URL}}",
notuleren: "{{MANUAL_NOTULEREN}}",
Expand Down Expand Up @@ -78,6 +84,8 @@ module.exports = function (environment) {
ENV.manual.publisher="#gebruikersbeheer";
ENV.manual.print="";
ENV.featureFlags.attachments = true;
ENV.roadsignRegulationPlugin.endpoint = "https://dev.roadsigns.lblod.info/sparql";
ENV.templateVariablePlugin.endpoint = "https://dev.roadsigns.lblod.info/sparql";
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
Expand Down
Loading

0 comments on commit 1500c5c

Please sign in to comment.