@factor/app
Advanced tools
Comparing version 1.5.20 to 1.5.24
@@ -20,5 +20,5 @@ import "@factor/app" | ||
export const createApp = async ({ | ||
url = "/" | ||
url = "/", | ||
}: { | ||
url?: string; | ||
url?: string | ||
} = {}): Promise<ApplicationComponents> => { | ||
@@ -53,3 +53,3 @@ process.env.FACTOR_TARGET = "app" | ||
router, | ||
store | ||
store, | ||
}) | ||
@@ -56,0 +56,0 @@ |
281
CHANGELOG.md
## [1.5.4](https://github.com/fiction-com/factor/compare/v1.5.7...v1.5.4) (2020-03-24) | ||
## [1.5.4](https://github.com/fiction-com/factor/compare/v1.5.3...v1.5.4) (2020-03-24) | ||
### Features | ||
* **sitemap:** new handling ([a19c084](https://github.com/fiction-com/factor/commit/a19c084dd7dd1a0d794d6578151bd056629a65b1)) | ||
- **sitemap:** new handling ([a19c084](https://github.com/fiction-com/factor/commit/a19c084dd7dd1a0d794d6578151bd056629a65b1)) | ||
# [1.5.0](https://github.com/fiction-com/factor/compare/v1.4.11...v1.5.0) (2020-03-20) | ||
## [1.4.11](https://github.com/fiction-com/factor/compare/v1.4.10...v1.4.11) (2020-03-18) | ||
### Features | ||
* **routes:** editing feature ([5962069](https://github.com/fiction-com/factor/commit/59620693c84b598ff946c21270b5fca6ba68875c)) | ||
- **routes:** editing feature ([5962069](https://github.com/fiction-com/factor/commit/59620693c84b598ff946c21270b5fca6ba68875c)) | ||
## [1.3.12](https://github.com/fiction-com/factor/compare/v1.3.11...v1.3.12) (2020-02-22) | ||
### Bug Fixes | ||
* route auth ([f0f04d0](https://github.com/fiction-com/factor/commit/f0f04d01917552eb3ccb515b08414bd4509572d1)) | ||
- route auth ([f0f04d0](https://github.com/fiction-com/factor/commit/f0f04d01917552eb3ccb515b08414bd4509572d1)) | ||
## [1.3.10](https://github.com/fiction-com/factor/compare/v1.3.9...v1.3.10) (2020-02-19) | ||
### Features | ||
* **forum:** pin and lock ([f785c76](https://github.com/fiction-com/factor/commit/f785c76d077ed7af395edb1b9a9744f2f16a4037)) | ||
- **forum:** pin and lock ([f785c76](https://github.com/fiction-com/factor/commit/f785c76d077ed7af395edb1b9a9744f2f16a4037)) | ||
## [1.3.9](https://github.com/fiction-com/factor/compare/v1.3.8...v1.3.9) (2020-02-19) | ||
### Bug Fixes | ||
* metainfo bug ([74caa2a](https://github.com/fiction-com/factor/commit/74caa2a34e486bb9904652fbb9f1a6bbcdd56f03)) | ||
- metainfo bug ([74caa2a](https://github.com/fiction-com/factor/commit/74caa2a34e486bb9904652fbb9f1a6bbcdd56f03)) | ||
## [1.3.8](https://github.com/fiction-com/factor/compare/v1.3.7...v1.3.8) (2020-02-19) | ||
### Features | ||
* **forum:** closer ([506390e](https://github.com/fiction-com/factor/commit/506390e6606a564506180cb763a8052e684c3bc4)) | ||
* **forum:** replies ([3e86960](https://github.com/fiction-com/factor/commit/3e86960625821e2a1b5443000fb4c7aec34b690c)) | ||
- **forum:** closer ([506390e](https://github.com/fiction-com/factor/commit/506390e6606a564506180cb763a8052e684c3bc4)) | ||
- **forum:** replies ([3e86960](https://github.com/fiction-com/factor/commit/3e86960625821e2a1b5443000fb4c7aec34b690c)) | ||
## [1.3.5](https://github.com/fiction-com/factor/compare/v1.3.4...v1.3.5) (2020-02-17) | ||
### Bug Fixes | ||
* **apps:** robots, e2e ([cdbdd7e](https://github.com/fiction-com/factor/commit/cdbdd7e1c364e4ee04a8c68bf3d44b8e73166f03)) | ||
- **apps:** robots, e2e ([cdbdd7e](https://github.com/fiction-com/factor/commit/cdbdd7e1c364e4ee04a8c68bf3d44b8e73166f03)) | ||
### Features | ||
* **forum:** index/single ([4c8a5c2](https://github.com/fiction-com/factor/commit/4c8a5c21049fa39b8d68419ed1101a26068f18d9)) | ||
- **forum:** index/single ([4c8a5c2](https://github.com/fiction-com/factor/commit/4c8a5c21049fa39b8d68419ed1101a26068f18d9)) | ||
## [1.3.3](https://github.com/fiction-com/factor/compare/v1.3.2...v1.3.3) (2020-02-10) | ||
### Bug Fixes | ||
* 404 error ([367c010](https://github.com/fiction-com/factor/commit/367c0102b321941dae6be5644f9b1a81e3723cec)) | ||
* **server:** allow response status changes, 404 - closes [#128](https://github.com/fiction-com/factor/issues/128) ([9956bed](https://github.com/fiction-com/factor/commit/9956bed8ce2529c2dd2ccd64ded8a90dd8f5e65c)) | ||
- 404 error ([367c010](https://github.com/fiction-com/factor/commit/367c0102b321941dae6be5644f9b1a81e3723cec)) | ||
- **server:** allow response status changes, 404 - closes [#128](https://github.com/fiction-com/factor/issues/128) ([9956bed](https://github.com/fiction-com/factor/commit/9956bed8ce2529c2dd2ccd64ded8a90dd8f5e65c)) | ||
# [1.3.0](https://github.com/fiction-com/factor/compare/v1.2.10...v1.3.0) (2020-02-04) | ||
## [1.2.10](https://github.com/fiction-com/factor/compare/v1.2.9...v1.2.10) (2020-02-04) | ||
## [1.2.5](https://github.com/fiction-com/factor/compare/v1.2.4...v1.2.5) (2020-01-29) | ||
## [1.2.2](https://github.com/fiction-com/factor/compare/v1.2.1...v1.2.2) (2020-01-27) | ||
### Bug Fixes | ||
* ts ([befa8f5](https://github.com/fiction-com/factor/commit/befa8f5ee419005544a10f578efff27d4e4218c7)) | ||
* tweaks and experiments for global css ([1ac2f8d](https://github.com/fiction-com/factor/commit/1ac2f8d18ba391b5d5d89aa55397307606b79a33)) | ||
- ts ([befa8f5](https://github.com/fiction-com/factor/commit/befa8f5ee419005544a10f578efff27d4e4218c7)) | ||
- tweaks and experiments for global css ([1ac2f8d](https://github.com/fiction-com/factor/commit/1ac2f8d18ba391b5d5d89aa55397307606b79a33)) | ||
## [1.2.1](https://github.com/fiction-com/factor/compare/v1.2.0...v1.2.1) (2020-01-26) | ||
# [1.2.0](https://github.com/fiction-com/factor/compare/v1.1.42...v1.2.0) (2020-01-26) | ||
## [1.1.42](https://github.com/fiction-com/factor/compare/v1.1.41...v1.1.42) (2020-01-25) | ||
## [1.1.40](https://github.com/fiction-com/factor/compare/v1.1.39...v1.1.40) (2020-01-22) | ||
## [1.1.39](https://github.com/fiction-com/factor/compare/v1.1.38...v1.1.39) (2020-01-22) | ||
### Bug Fixes | ||
* setting function, comments, diagnostics, ([049d9b5](https://github.com/fiction-com/factor/commit/049d9b573f05fc6aeebc93188f1a23f0c9c1a13d)) | ||
- setting function, comments, diagnostics, ([049d9b5](https://github.com/fiction-com/factor/commit/049d9b573f05fc6aeebc93188f1a23f0c9c1a13d)) | ||
## [1.1.37](https://github.com/fiction-com/factor/compare/v1.1.36...v1.1.37) (2020-01-22) | ||
## [1.1.36](https://github.com/fiction-com/factor/compare/v1.1.35...v1.1.36) (2020-01-21) | ||
## [1.1.35](https://github.com/fiction-com/factor/compare/v1.1.34...v1.1.35) (2020-01-21) | ||
## [1.1.34](https://github.com/fiction-com/factor/compare/v1.1.33...v1.1.34) (2020-01-21) | ||
## [1.1.33](https://github.com/fiction-com/factor/compare/v1.1.32...v1.1.33) (2020-01-18) | ||
## [1.1.31](https://github.com/fiction-com/factor/compare/v1.1.30...v1.1.31) (2020-01-17) | ||
## [1.1.30](https://github.com/fiction-com/factor/compare/v1.1.29...v1.1.30) (2020-01-17) | ||
### Bug Fixes | ||
* image upload. Closes [#111](https://github.com/fiction-com/factor/issues/111) ([41215ba](https://github.com/fiction-com/factor/commit/41215bac7cb4824a422ff9d6f4e1ea4eef26ecac)) | ||
- image upload. Closes [#111](https://github.com/fiction-com/factor/issues/111) ([41215ba](https://github.com/fiction-com/factor/commit/41215bac7cb4824a422ff9d6f4e1ea4eef26ecac)) | ||
## [1.1.29](https://github.com/fiction-com/factor/compare/v1.1.28...v1.1.29) (2020-01-16) | ||
## [1.1.28](https://github.com/fiction-com/factor/compare/v1.1.27...v1.1.28) (2020-01-16) | ||
## [1.1.26](https://github.com/fiction-com/factor/compare/v1.1.25...v1.1.26) (2020-01-15) | ||
### Bug Fixes | ||
* filepath ([ac67c9a](https://github.com/fiction-com/factor/commit/ac67c9ac53732aabfe93c5eb0f066d5e58f7da8e)) | ||
- filepath ([ac67c9a](https://github.com/fiction-com/factor/commit/ac67c9ac53732aabfe93c5eb0f066d5e58f7da8e)) | ||
## [1.1.24](https://github.com/fiction-com/factor/compare/v1.1.23...v1.1.24) (2020-01-15) | ||
## [1.1.23](https://github.com/fiction-com/factor/compare/v1.1.22...v1.1.23) (2020-01-14) | ||
## [1.1.22](https://github.com/fiction-com/factor/compare/v1.1.21...v1.1.22) (2020-01-11) | ||
## [1.1.21](https://github.com/fiction-com/factor/compare/v1.1.20...v1.1.21) (2020-01-05) | ||
### Features | ||
* **multi-render:** control files, additional filters ([715d6c0](https://github.com/fiction-com/factor/commit/715d6c0795ff2625868ff1f3ba8857a364ac0eef)) | ||
* **multi-render:** settings, cwd ([3d7e985](https://github.com/fiction-com/factor/commit/3d7e98521525058c6d4aff66e5df0db7c2dacd2d)) | ||
- **multi-render:** control files, additional filters ([715d6c0](https://github.com/fiction-com/factor/commit/715d6c0795ff2625868ff1f3ba8857a364ac0eef)) | ||
- **multi-render:** settings, cwd ([3d7e985](https://github.com/fiction-com/factor/commit/3d7e98521525058c6d4aff66e5df0db7c2dacd2d)) | ||
## [1.1.20](https://github.com/fiction-com/factor/compare/v1.1.19...v1.1.20) (2020-01-03) | ||
## [1.1.19](https://github.com/fiction-com/factor/compare/v1.1.18...v1.1.19) (2020-01-03) | ||
### Features | ||
* **dashboard:** add images to listing ([ed5a248](https://github.com/fiction-com/factor/commit/ed5a2488715a0c2e9d6ef68a4c2bc68550d3c337)) | ||
- **dashboard:** add images to listing ([ed5a248](https://github.com/fiction-com/factor/commit/ed5a2488715a0c2e9d6ef68a4c2bc68550d3c337)) | ||
## [1.1.18](https://github.com/fiction-com/factor/compare/v1.1.17...v1.1.18) (2020-01-01) | ||
## [1.1.16](https://github.com/fiction-com/factor/compare/v1.1.16-alpha.0...v1.1.16) (2020-01-01) | ||
## [1.1.15](https://github.com/fiction-com/factor/compare/v1.1.14...v1.1.15) (2019-12-30) | ||
## [1.1.14](https://github.com/fiction-com/factor/compare/v1.1.13...v1.1.14) (2019-12-23) | ||
### Features | ||
* **typescript:** apply filters ([cfd6f3f](https://github.com/fiction-com/factor/commit/cfd6f3f430ffbd01d4376fa79944b3b364aecde3)) | ||
- **typescript:** apply filters ([cfd6f3f](https://github.com/fiction-com/factor/commit/cfd6f3f430ffbd01d4376fa79944b3b364aecde3)) | ||
## [1.1.9](https://github.com/fiction-com/factor/compare/v1.1.8...v1.1.9) (2019-12-18) | ||
### Bug Fixes | ||
* **metatags:** handling ([72c1ee0](https://github.com/fiction-com/factor/commit/72c1ee054acc39e8093d2f75f4b1231e6dbb3c3a)) | ||
* **store:** no global state + analytics fix ([79d53e8](https://github.com/fiction-com/factor/commit/79d53e816e3911d22ba6f62b1d1af61fa83cf959)) | ||
- **metatags:** handling ([72c1ee0](https://github.com/fiction-com/factor/commit/72c1ee054acc39e8093d2f75f4b1231e6dbb3c3a)) | ||
- **store:** no global state + analytics fix ([79d53e8](https://github.com/fiction-com/factor/commit/79d53e816e3911d22ba6f62b1d1af61fa83cf959)) | ||
## [1.1.5](https://github.com/fiction-com/factor/compare/v1.1.4...v1.1.5) (2019-12-09) | ||
## [1.1.4](https://github.com/fiction-com/factor/compare/v1.1.3...v1.1.4) (2019-12-07) | ||
### Bug Fixes | ||
* debugger X ([d9315f3](https://github.com/fiction-com/factor/commit/d9315f3b7e168171d844180f0692a1bd15ac7740)) | ||
* test ([aa04bbf](https://github.com/fiction-com/factor/commit/aa04bbf6af8e22edd995dd1a2266001f8fb33d15)) | ||
* **ts:** vue imports ([5c1046a](https://github.com/fiction-com/factor/commit/5c1046ae8b602f98c4ba107887660b2113c96818)) | ||
* **ts:** vue imports ([9d78a44](https://github.com/fiction-com/factor/commit/9d78a44500f73328a5842b9ce6ea7e83b4d62c3e)) | ||
* filter key ([c440bc0](https://github.com/fiction-com/factor/commit/c440bc0f3004a53cc3d585a92fd1c9f1fb0cf97a)) | ||
* general / test ([a3ed45a](https://github.com/fiction-com/factor/commit/a3ed45aa889b17a22cc778c3dbdbcb228772e146)) | ||
* loader order ([9514ce9](https://github.com/fiction-com/factor/commit/9514ce98fe3f239ecc9d03f1f2cf8dbf19c32a38)) | ||
* rollback arrow parens ([9cbc4c4](https://github.com/fiction-com/factor/commit/9cbc4c4e187702169b469f5579974f915772f499)) | ||
* server restart bugs ([7e34fb7](https://github.com/fiction-com/factor/commit/7e34fb71dc5c37d33e198b2c7e3ae692c51e5a7a)) | ||
* **eslint:** import ordering ([865b830](https://github.com/fiction-com/factor/commit/865b8300a6aea2170fad5bb6cd4ac00e5db2cc8c)) | ||
* **style:** wrap function arguments in arrow ([0c3a5e5](https://github.com/fiction-com/factor/commit/0c3a5e59d74f32be023bd32d48d434c9ad90c1ad)) | ||
* **typescript:** html issue ([f52d4f0](https://github.com/fiction-com/factor/commit/f52d4f0df8b466b3e1bfea4352bafbf6892ae617)) | ||
* router ([44aae33](https://github.com/fiction-com/factor/commit/44aae33b710fb5a7937193164d5ce71e147e6807)) | ||
- debugger X ([d9315f3](https://github.com/fiction-com/factor/commit/d9315f3b7e168171d844180f0692a1bd15ac7740)) | ||
- test ([aa04bbf](https://github.com/fiction-com/factor/commit/aa04bbf6af8e22edd995dd1a2266001f8fb33d15)) | ||
- **ts:** vue imports ([5c1046a](https://github.com/fiction-com/factor/commit/5c1046ae8b602f98c4ba107887660b2113c96818)) | ||
- **ts:** vue imports ([9d78a44](https://github.com/fiction-com/factor/commit/9d78a44500f73328a5842b9ce6ea7e83b4d62c3e)) | ||
- filter key ([c440bc0](https://github.com/fiction-com/factor/commit/c440bc0f3004a53cc3d585a92fd1c9f1fb0cf97a)) | ||
- general / test ([a3ed45a](https://github.com/fiction-com/factor/commit/a3ed45aa889b17a22cc778c3dbdbcb228772e146)) | ||
- loader order ([9514ce9](https://github.com/fiction-com/factor/commit/9514ce98fe3f239ecc9d03f1f2cf8dbf19c32a38)) | ||
- rollback arrow parens ([9cbc4c4](https://github.com/fiction-com/factor/commit/9cbc4c4e187702169b469f5579974f915772f499)) | ||
- server restart bugs ([7e34fb7](https://github.com/fiction-com/factor/commit/7e34fb71dc5c37d33e198b2c7e3ae692c51e5a7a)) | ||
- **eslint:** import ordering ([865b830](https://github.com/fiction-com/factor/commit/865b8300a6aea2170fad5bb6cd4ac00e5db2cc8c)) | ||
- **style:** wrap function arguments in arrow ([0c3a5e5](https://github.com/fiction-com/factor/commit/0c3a5e59d74f32be023bd32d48d434c9ad90c1ad)) | ||
- **typescript:** html issue ([f52d4f0](https://github.com/fiction-com/factor/commit/f52d4f0df8b466b3e1bfea4352bafbf6892ae617)) | ||
- router ([44aae33](https://github.com/fiction-com/factor/commit/44aae33b710fb5a7937193164d5ce71e147e6807)) | ||
### Features | ||
* **typescript:** 691 to 587 ([f2a01dc](https://github.com/fiction-com/factor/commit/f2a01dcca20822a7b36e55911dbaaf3d45eb5ec5)) | ||
* **typescript:** [#214](https://github.com/fiction-com/factor/issues/214) to [#135](https://github.com/fiction-com/factor/issues/135) ([99352ce](https://github.com/fiction-com/factor/commit/99352cedca321feba21fe0bbcc926832dc062c83)) | ||
* **typescript:** [#452](https://github.com/fiction-com/factor/issues/452) to [#379](https://github.com/fiction-com/factor/issues/379) ([cd49700](https://github.com/fiction-com/factor/commit/cd497004c47ab7f9daa4fe82b137b1f292196ecf)) | ||
* **typescript:** [#6](https://github.com/fiction-com/factor/issues/6) ([aa4ec2e](https://github.com/fiction-com/factor/commit/aa4ec2e7c35ecde36307238413041c533f993d83)) | ||
* **typescript:** [#65](https://github.com/fiction-com/factor/issues/65) to [#0](https://github.com/fiction-com/factor/issues/0) ([ba63f53](https://github.com/fiction-com/factor/commit/ba63f536c9a3ace6c2efdbd0d177944eaf6549b4)) | ||
* **typescript:** 587 to 489 ([055c6a9](https://github.com/fiction-com/factor/commit/055c6a963b3359a8227a96c6c25e0c7be96a8f5a)) | ||
* **typescript:** 691 to 669 ([e81ed46](https://github.com/fiction-com/factor/commit/e81ed46f6b10dfce148673df749e77277ed65cfc)) | ||
* **typescript:** 772 to 691 ([31d5194](https://github.com/fiction-com/factor/commit/31d51940e7d692f3c3f10d53df5bc58d494a13a0)) | ||
* **typescript:** components / Vue ([37e31a8](https://github.com/fiction-com/factor/commit/37e31a8323cb064a0e0a6e452e241ba150cdf678)) | ||
* **typescript:** factor site ([adc937a](https://github.com/fiction-com/factor/commit/adc937aada1ee5bc2bc25ba27ec5b3cc4a2aa8ce)) | ||
* **typescript:** fix unit tests ([0e3fd4a](https://github.com/fiction-com/factor/commit/0e3fd4af557462b08c735577513c83f09b178735)) | ||
* **typescript:** server, posts, user migration ([55c472b](https://github.com/fiction-com/factor/commit/55c472b4f6cb7ea74c40383a570e7fa80358ca30)) | ||
* typescript ([fda5d99](https://github.com/fiction-com/factor/commit/fda5d99516e6d4fc6231da3ab2609add5c984033)) | ||
* typescript ([86d2e1d](https://github.com/fiction-com/factor/commit/86d2e1d5d3d67a065c40fb5f458ce7bcb584e702)) | ||
- **typescript:** 691 to 587 ([f2a01dc](https://github.com/fiction-com/factor/commit/f2a01dcca20822a7b36e55911dbaaf3d45eb5ec5)) | ||
- **typescript:** [#214](https://github.com/fiction-com/factor/issues/214) to [#135](https://github.com/fiction-com/factor/issues/135) ([99352ce](https://github.com/fiction-com/factor/commit/99352cedca321feba21fe0bbcc926832dc062c83)) | ||
- **typescript:** [#452](https://github.com/fiction-com/factor/issues/452) to [#379](https://github.com/fiction-com/factor/issues/379) ([cd49700](https://github.com/fiction-com/factor/commit/cd497004c47ab7f9daa4fe82b137b1f292196ecf)) | ||
- **typescript:** [#6](https://github.com/fiction-com/factor/issues/6) ([aa4ec2e](https://github.com/fiction-com/factor/commit/aa4ec2e7c35ecde36307238413041c533f993d83)) | ||
- **typescript:** [#65](https://github.com/fiction-com/factor/issues/65) to [#0](https://github.com/fiction-com/factor/issues/0) ([ba63f53](https://github.com/fiction-com/factor/commit/ba63f536c9a3ace6c2efdbd0d177944eaf6549b4)) | ||
- **typescript:** 587 to 489 ([055c6a9](https://github.com/fiction-com/factor/commit/055c6a963b3359a8227a96c6c25e0c7be96a8f5a)) | ||
- **typescript:** 691 to 669 ([e81ed46](https://github.com/fiction-com/factor/commit/e81ed46f6b10dfce148673df749e77277ed65cfc)) | ||
- **typescript:** 772 to 691 ([31d5194](https://github.com/fiction-com/factor/commit/31d51940e7d692f3c3f10d53df5bc58d494a13a0)) | ||
- **typescript:** components / Vue ([37e31a8](https://github.com/fiction-com/factor/commit/37e31a8323cb064a0e0a6e452e241ba150cdf678)) | ||
- **typescript:** factor site ([adc937a](https://github.com/fiction-com/factor/commit/adc937aada1ee5bc2bc25ba27ec5b3cc4a2aa8ce)) | ||
- **typescript:** fix unit tests ([0e3fd4a](https://github.com/fiction-com/factor/commit/0e3fd4af557462b08c735577513c83f09b178735)) | ||
- **typescript:** server, posts, user migration ([55c472b](https://github.com/fiction-com/factor/commit/55c472b4f6cb7ea74c40383a570e7fa80358ca30)) | ||
- typescript ([fda5d99](https://github.com/fiction-com/factor/commit/fda5d99516e6d4fc6231da3ab2609add5c984033)) | ||
- typescript ([86d2e1d](https://github.com/fiction-com/factor/commit/86d2e1d5d3d67a065c40fb5f458ce7bcb584e702)) | ||
## [1.1.2](https://github.com/fiction-com/factor/compare/v1.1.1...v1.1.2) (2019-11-21) | ||
### Bug Fixes | ||
* lint ([8b4825d](https://github.com/fiction-com/factor/commit/8b4825d8f38988ec0045c9afa1cdfbf68638afe8)) | ||
- lint ([8b4825d](https://github.com/fiction-com/factor/commit/8b4825d8f38988ec0045c9afa1cdfbf68638afe8)) | ||
### Features | ||
* **docs:** reorganize [release] ([e0ebe1d](https://github.com/fiction-com/factor/commit/e0ebe1df69e1c42e50c92a85e6bd80ca51e7252b)) | ||
- **docs:** reorganize [release](<[e0ebe1d](https://github.com/fiction-com/factor/commit/e0ebe1df69e1c42e50c92a85e6bd80ca51e7252b)>) | ||
## [1.1.1](https://github.com/fiction-com/factor/compare/v1.1.0...v1.1.1) (2019-11-20) | ||
### Bug Fixes | ||
* jest and icons ([7dc0a92](https://github.com/fiction-com/factor/commit/7dc0a92aec46658e340817bce91d222c3b392e3c)) | ||
* testing for server ([9d28b92](https://github.com/fiction-com/factor/commit/9d28b9202996e5c7873f3d5a885e68da8ece26b9)) | ||
- jest and icons ([7dc0a92](https://github.com/fiction-com/factor/commit/7dc0a92aec46658e340817bce91d222c3b392e3c)) | ||
- testing for server ([9d28b92](https://github.com/fiction-com/factor/commit/9d28b9202996e5c7873f3d5a885e68da8ece26b9)) | ||
### Features | ||
* docs ([e3356bb](https://github.com/fiction-com/factor/commit/e3356bb426a09e37759e12070d9e49bd08c7110d)) | ||
- docs ([e3356bb](https://github.com/fiction-com/factor/commit/e3356bb426a09e37759e12070d9e49bd08c7110d)) | ||
# [1.1.0](https://github.com/fiction-com/factor/compare/v1.0.0-beta.18...v1.1.0) (2019-11-19) | ||
### Bug Fixes | ||
* firebase ([37e5567](https://github.com/fiction-com/factor/commit/37e556731903a10f0a4db1109839ea4c7c3f8a67)) | ||
- firebase ([37e5567](https://github.com/fiction-com/factor/commit/37e556731903a10f0a4db1109839ea4c7c3f8a67)) | ||
# [1.0.0-beta.18](https://github.com/fiction-com/factor/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2019-11-12) | ||
### Bug Fixes | ||
* dash ([c50cac4](https://github.com/fiction-com/factor/commit/c50cac4ef5079280df7919bb3f560be5f593f5c5)) | ||
* **dashboard:** layout improvements ([2fe1ac6](https://github.com/fiction-com/factor/commit/2fe1ac6e32d589328a9ac054e66d2523851a92d0)) | ||
- dash ([c50cac4](https://github.com/fiction-com/factor/commit/c50cac4ef5079280df7919bb3f560be5f593f5c5)) | ||
- **dashboard:** layout improvements ([2fe1ac6](https://github.com/fiction-com/factor/commit/2fe1ac6e32d589328a9ac054e66d2523851a92d0)) | ||
# [1.0.0-beta.17](https://github.com/fiction-com/factor/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2019-11-11) | ||
### Bug Fixes | ||
* JWT and router ([93308e4](https://github.com/fiction-com/factor/commit/93308e4839ea3da85f9bb32f4720d377120a0269)) | ||
- JWT and router ([93308e4](https://github.com/fiction-com/factor/commit/93308e4839ea3da85f9bb32f4720d377120a0269)) | ||
# [1.0.0-beta.15](https://github.com/fiction-com/factor/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2019-11-11) | ||
# [1.0.0-beta.14](https://github.com/fiction-com/factor/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2019-11-11) | ||
### Bug Fixes | ||
* **packages:** consolidate dep to core pkg ([405e0c2](https://github.com/fiction-com/factor/commit/405e0c20f862c0b428e4520438f13a3ff0832c62)) | ||
- **packages:** consolidate dep to core pkg ([405e0c2](https://github.com/fiction-com/factor/commit/405e0c20f862c0b428e4520438f13a3ff0832c62)) | ||
# [1.0.0-beta.13](https://github.com/fiction-com/factor/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2019-11-11) | ||
### Bug Fixes | ||
* package versions ([9c4cffb](https://github.com/fiction-com/factor/commit/9c4cffb4f702756fed8db896e663086032db8f7d)) | ||
- package versions ([9c4cffb](https://github.com/fiction-com/factor/commit/9c4cffb4f702756fed8db896e663086032db8f7d)) | ||
# [1.0.0-beta.12](https://github.com/fiction-com/factor/compare/v1.0.0-beta.9...v1.0.0-beta.12) (2019-11-11) | ||
### Bug Fixes | ||
* clean up circular dependency ([ef32ff8](https://github.com/fiction-com/factor/commit/ef32ff8372a6b9ac71345c13865125398bbaf6b5)) | ||
* create-app ([26dd1e6](https://github.com/fiction-com/factor/commit/26dd1e6a1d26207e6cabca39f361a22eb9d7ef8d)) | ||
* docs app ([7872a02](https://github.com/fiction-com/factor/commit/7872a021fc21f4b4f1473d359abdb6e857ab5538)) | ||
* for events loading ([c758dee](https://github.com/fiction-com/factor/commit/c758dee270e9dc1a7626b9604bf97e1e33f7ce56)) | ||
* router ([c7d877e](https://github.com/fiction-com/factor/commit/c7d877e3586467328e1e39b0add58983ff012c02)) | ||
* types light ([7991f94](https://github.com/fiction-com/factor/commit/7991f94c08aae07c48209b627fcdaaef700bb5bd)) | ||
- clean up circular dependency ([ef32ff8](https://github.com/fiction-com/factor/commit/ef32ff8372a6b9ac71345c13865125398bbaf6b5)) | ||
- create-app ([26dd1e6](https://github.com/fiction-com/factor/commit/26dd1e6a1d26207e6cabca39f361a22eb9d7ef8d)) | ||
- docs app ([7872a02](https://github.com/fiction-com/factor/commit/7872a021fc21f4b4f1473d359abdb6e857ab5538)) | ||
- for events loading ([c758dee](https://github.com/fiction-com/factor/commit/c758dee270e9dc1a7626b9604bf97e1e33f7ce56)) | ||
- router ([c7d877e](https://github.com/fiction-com/factor/commit/c7d877e3586467328e1e39b0add58983ff012c02)) | ||
- types light ([7991f94](https://github.com/fiction-com/factor/commit/7991f94c08aae07c48209b627fcdaaef700bb5bd)) | ||
### Features | ||
* implement basic typescript linting ([913d7ee](https://github.com/fiction-com/factor/commit/913d7eeda8bb27e04435adbc288c667dc6ca16fc)) | ||
* **extensions:** move to jsdelivr ([b431d42](https://github.com/fiction-com/factor/commit/b431d42ef50c4a199ea1ad64aa222dbd090e19f7)) | ||
* **extensions:** plugins work ([bdc4cd3](https://github.com/fiction-com/factor/commit/bdc4cd3b3ce81efdbab56073ab265e84df3423b0)) | ||
- implement basic typescript linting ([913d7ee](https://github.com/fiction-com/factor/commit/913d7eeda8bb27e04435adbc288c667dc6ca16fc)) | ||
- **extensions:** move to jsdelivr ([b431d42](https://github.com/fiction-com/factor/commit/b431d42ef50c4a199ea1ad64aa222dbd090e19f7)) | ||
- **extensions:** plugins work ([bdc4cd3](https://github.com/fiction-com/factor/commit/bdc4cd3b3ce81efdbab56073ab265e84df3423b0)) | ||
## [0.0.7](https://github.com/fiction-com/factor/compare/v0.0.6...v0.0.7) (2019-03-21) | ||
## [0.0.6](https://github.com/fiction-com/factor/compare/v0.0.5...v0.0.6) (2019-03-21) | ||
## [0.0.5](https://github.com/fiction-com/factor/compare/v0.0.4...v0.0.5) (2019-03-21) | ||
## [0.0.4](https://github.com/fiction-com/factor/compare/v0.0.3...v0.0.4) (2019-03-21) | ||
## 0.0.3 (2019-03-21) | ||
@@ -9,3 +9,3 @@ /* eslint-disable import/no-unresolved */ | ||
content: (): Promise<Component> => import("__FIND__/content.vue"), | ||
site: (): Promise<Component> => import("__FIND__/site.vue") | ||
site: (): Promise<Component> => import("__FIND__/site.vue"), | ||
}, | ||
@@ -16,12 +16,12 @@ // Must be a function to use __FIND__ | ||
templatePath: "__FIND__/index.html", | ||
faviconPath: "__FIND__/static/favicon.png" | ||
faviconPath: "__FIND__/static/favicon.png", | ||
}, | ||
dashboard: { | ||
route: "/dashboard" | ||
route: "/dashboard", | ||
}, | ||
metaInfo: { | ||
titleTemplate: "%s", | ||
image: "" | ||
} | ||
image: "", | ||
}, | ||
} | ||
} |
31
index.ts
import { setting } from "@factor/api/settings" | ||
import { addFilter, applyFilters, addCallback } from "@factor/api/hooks" | ||
import { onEvent } from "@factor/api/events" | ||
import { isNode } from "@factor/api/utils" | ||
export * from "./extend-app" | ||
@@ -8,3 +9,3 @@ import { RouteConfig } from "vue-router" | ||
const waitForMountApp = (): Promise<void> => { | ||
return new Promise(resolve => onEvent("app-mounted", () => resolve())) | ||
return new Promise((resolve) => onEvent("app-mounted", () => resolve())) | ||
} | ||
@@ -25,2 +26,12 @@ | ||
export const setup = (): void => { | ||
/** | ||
* Log all notification style events to console | ||
*/ | ||
if (!isNode) { | ||
// eslint-disable-next-line no-console | ||
onEvent("notify", console.log) | ||
// eslint-disable-next-line no-console | ||
onEvent("error", console.error) | ||
} | ||
addCallback({ | ||
@@ -46,7 +57,7 @@ hook: "initialize-app", | ||
component: factorError404, | ||
meta: { error: 403 } | ||
} | ||
meta: { error: 403 }, | ||
}, | ||
]).filter((route: RouteConfig, index: number, self: RouteConfig[]) => { | ||
// remove duplicate paths | ||
const lastIndexOf = self.map(_ => _.path).lastIndexOf(route.path) | ||
const lastIndexOf = self.map((_) => _.path).lastIndexOf(route.path) | ||
return index === lastIndexOf | ||
@@ -58,3 +69,3 @@ }) | ||
component: factorContent, | ||
children: contentRoutes | ||
children: contentRoutes, | ||
}) | ||
@@ -70,12 +81,12 @@ | ||
component: factorError404, | ||
meta: { error: 404 } | ||
} | ||
meta: { error: 404 }, | ||
}, | ||
]), | ||
priority: 3000 | ||
priority: 3000, | ||
}) | ||
return _ | ||
} | ||
}, | ||
}) | ||
} | ||
}, | ||
}) | ||
@@ -82,0 +93,0 @@ } |
{ | ||
"name": "@factor/app", | ||
"version": "1.5.20", | ||
"version": "1.5.24", | ||
"license": "GPL-2.0", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "5251aade2646912e08210428f4b6c3e463434f24" | ||
"gitHead": "28ef0237c1e238fa7b6f87b06ff4770aea5db163" | ||
} |
@@ -33,3 +33,3 @@ import { applyFilters, runCallbacks, pushToFilter, addFilter } from "@factor/api/hooks" | ||
from, | ||
next | ||
next, | ||
}) | ||
@@ -41,3 +41,3 @@ | ||
if (results.length == 0 || !results.some(_ => _ === false)) { | ||
if (results.length == 0 || !results.some((_) => _ === false)) { | ||
// proceed | ||
@@ -72,4 +72,4 @@ next() | ||
routes | ||
.filter(_ => _.path !== "*") | ||
.forEach(_ => { | ||
.filter((_) => _.path !== "*") | ||
.forEach((_) => { | ||
if (_.path) { | ||
@@ -131,4 +131,4 @@ let _p = _.path | ||
}, | ||
parseQuery: query => qs.parse(query), | ||
stringifyQuery: query => (qs.stringify(query) ? `?${qs.stringify(query)}` : "") | ||
parseQuery: (query) => qs.parse(query), | ||
stringifyQuery: (query) => (qs.stringify(query) ? `?${qs.stringify(query)}` : ""), | ||
} as RouterOptions) | ||
@@ -166,3 +166,3 @@ | ||
item: routeItem, | ||
...options | ||
...options, | ||
}) | ||
@@ -205,7 +205,7 @@ } | ||
action = "edit", | ||
callback | ||
callback, | ||
}: { | ||
path: string | string[]; | ||
action: "remove" | "edit"; | ||
callback?: (r: RouteConfig) => RouteConfig | undefined; | ||
path: string | string[] | ||
action: "remove" | "edit" | ||
callback?: (r: RouteConfig) => RouteConfig | undefined | ||
}): void => { | ||
@@ -233,3 +233,3 @@ addFilter({ | ||
}, | ||
priority: 200 | ||
priority: 200, | ||
}) | ||
@@ -248,6 +248,6 @@ } | ||
key, | ||
routes | ||
routes, | ||
}: { | ||
key: string; | ||
routes: RouteConfig[] | (() => RouteConfig[]); | ||
key: string | ||
routes: RouteConfig[] | (() => RouteConfig[]) | ||
}): void => { | ||
@@ -261,3 +261,3 @@ addFilter({ | ||
return allRoutes.concat(r) | ||
} | ||
}, | ||
}) | ||
@@ -264,0 +264,0 @@ } |
@@ -9,3 +9,3 @@ import { runCallbacks, applyFilters, stored } from "@factor/api" | ||
return { | ||
scrollClass: "" | ||
scrollClass: "", | ||
} | ||
@@ -18,3 +18,3 @@ }, | ||
ui(this: VueConstructor): string { | ||
const { meta = {} } = this.$route.matched.find(_ => _.meta.ui) || {} | ||
const { meta = {} } = this.$route.matched.find((_) => _.meta.ui) || {} | ||
@@ -43,3 +43,3 @@ const ui = meta.ui || "app" | ||
) | ||
} | ||
}, | ||
}, | ||
@@ -49,3 +49,3 @@ | ||
ui: { | ||
handler: function(to: string, from: string): void { | ||
handler: function (to: string, from: string): void { | ||
if (typeof document != "undefined") { | ||
@@ -56,4 +56,4 @@ const _el = document.documentElement | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
@@ -72,5 +72,5 @@ mounted() { | ||
this.scrollClass = window.pageYOffset == 0 ? "top" : "scrolled" | ||
} | ||
} | ||
}, | ||
}, | ||
}) | ||
} |
@@ -11,3 +11,3 @@ // This configures the context information needed to SSR the page | ||
router, | ||
store | ||
store, | ||
}: ApplicationComponents): Promise<ServerRenderContext> => { | ||
@@ -19,3 +19,3 @@ const { url = "" } = context | ||
// Account for redirects | ||
router.push(fullPath !== url ? fullPath : url).catch(error => log.error(error)) | ||
router.push(fullPath !== url ? fullPath : url).catch((error) => log.error(error)) | ||
@@ -22,0 +22,0 @@ context = applyFilters("ssr-context-init", context, { vm, router, store }) |
@@ -16,3 +16,3 @@ import Vuex from "vuex" | ||
getters: { | ||
getItem: (state: Record<string, any>) => (item: string): any => state[item] | ||
getItem: (state: Record<string, any>) => (item: string): any => state[item], | ||
}, | ||
@@ -22,4 +22,4 @@ mutations: { | ||
Vue.set(state, item, value) | ||
} | ||
} | ||
}, | ||
}, | ||
}) | ||
@@ -26,0 +26,0 @@ |
@@ -11,3 +11,3 @@ /** | ||
createApp: jest.spyOn(app, "createApp"), | ||
emitEvent: jest.spyOn(events, "emitEvent") | ||
emitEvent: jest.spyOn(events, "emitEvent"), | ||
} | ||
@@ -14,0 +14,0 @@ describe("browser-app", () => { |
@@ -11,3 +11,3 @@ import * as app from "@factor/app/app" | ||
runCallbacks: jest.spyOn(filters, "runCallbacks"), | ||
applyFilters: jest.spyOn(filters, "applyFilters") | ||
applyFilters: jest.spyOn(filters, "applyFilters"), | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -5,3 +5,3 @@ import Vue from "vue" | ||
export interface Vue { | ||
ui: string; | ||
ui: string | ||
} | ||
@@ -12,4 +12,4 @@ } | ||
interface MountOptions { | ||
router: VueRouter; | ||
router: VueRouter | ||
} | ||
} |
@@ -28,4 +28,4 @@ /** | ||
{ path: "/", meta: { ui: "app" } }, | ||
{ path: "/alt", meta: { ui: "dashboard" } } | ||
] | ||
{ path: "/alt", meta: { ui: "dashboard" } }, | ||
], | ||
}) | ||
@@ -32,0 +32,0 @@ router.push("/") |
22
types.ts
@@ -6,18 +6,18 @@ import Vue from "vue" | ||
export interface RouteGuard { | ||
to: Route; | ||
from: Route; | ||
next: (to?: RawLocation | false) => void; | ||
to: Route | ||
from: Route | ||
next: (to?: RawLocation | false) => void | ||
} | ||
export interface ServerRenderContext { | ||
url: string; | ||
state?: object; | ||
[key: string]: any; | ||
url: string | ||
state?: object | ||
[key: string]: any | ||
} | ||
export interface ApplicationComponents { | ||
vm: Vue; | ||
router: VueRouter; | ||
store: Store<any>; | ||
context: ServerRenderContext; | ||
vm: Vue | ||
router: VueRouter | ||
store: Store<any> | ||
context: ServerRenderContext | ||
} | ||
@@ -27,4 +27,4 @@ | ||
interface RouteConfig { | ||
priority?: number; | ||
priority?: number | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63640
789