project-owlly / site

🦉 owlly enables the secure and easy electronic signing, validation and counting of popular initiatives and referendums for campaign platforms and offers a holistic e-collecting approach for Switzerland.
https://owlly.ch
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

add scully #11

Open sansan88 opened 4 years ago

sansan88 commented 4 years ago

add scully

sansan88 commented 4 years ago

https://jenniferwadella.com/blog/rendering-static-pages-from-dynamic-routes-in-angular-with-scully https://angular.io/guide/universal

sansan88 commented 4 years ago

https://ionicframework.com/blog/ssr-with-angular-universal-and-ionic/ https://devdactic.com/ultimate-ionic-ssr-guide/

sansan88 commented 4 years ago

owlly.ch/o/meine-initiative

peterpeterparker commented 4 years ago

@sansan88 I tried a bit but it seems that right now we can initialize Scully which seems to not be ready for Angular v11. I am not sure if the error comes after everything is set or not.

See following error 👉 https://github.com/scullyio/scully/issues/1126

Our log

ng add @scullyio/init
Your global Angular CLI version (11.0.2) is greater than your local version (11.0.1). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false". Installing packages for tooling via npm. Installed packages for tooling via npm. Install ng-lib for Angular v9 - v10 ✅️ Added dependency UPDATE src/app/app.module.ts (1320 bytes) UPDATE src/polyfills.ts (3057 bytes) UPDATE package.json (1917 bytes) ✔ Packages installed successfully. ✅️ Update package.json ✅️ Created scully configuration file in scully.app.config.ts CREATE scully.app.config.ts (178 bytes) UPDATE package.json (1977 bytes) Schematic input does not validate against the Schema: "app" Errors:

Data path "" should be object.

peterpeterparker commented 4 years ago

@sansan88 even though there was that error I think the setup worked and scully was initialized, but, my guess is that there is issue when use with Ionic components. Not sure if it is rehydration issue but the loading of a page is glitchy. I guess either the web components are not attached with their css or something.

You can give it a try meanwhile, I created a branch https://github.com/project-owlly/site/tree/feat/scully

As it is not more successful yet, I won't invest more time this afternoon, let's speak next week.

sansan88 commented 4 years ago

Hmm thanks anyway! To me, we can downgrade to amgular 10, but as you mentioned, there is this scully/ionic issue..

sansan88 commented 4 years ago

https://github.com/scullyio/scully/issues/428

sansan88 commented 4 years ago

It looks like angular 11 is now supproted? https://github.com/scullyio/scully/pull/1123

peterpeterparker commented 4 years ago

Angular v11 is not really a blocking issue but cool if it is now supported

To the contrary, currently, Ionic cannot be use we Scully. It would probably need a plugin or something but it is not in the making neither currently as far as I know.

We can discuss Thursday or Friday what are the options.

sansan88 commented 4 years ago

https://github.com/scullyio/scully/issues/1126#issuecomment-733562113

sansan88 commented 4 years ago

wie besprochen owlly.ch/o/meine-initiative mit scully einrichten..

sansan88 commented 4 years ago

grafik