2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-01 20:54:04 +03:00
Commit Graph

235 Commits

Author SHA1 Message Date
pimlie 9041bfef62 chore: lint 2020-01-03 10:30:33 +01:00
Ricardo Gobbo de Souza fa12530b3e fix: call afterNavigation after nextTick (#478)
* fix: afterNavigation

* style: use arrow function
2019-10-28 10:24:42 +01:00
Pim 2231ec1aa1 fix: try to detect global mixins adding meta info (#467)
* feat: try to detect global mixins adding meta info

* fix: add find polyfill for ie

* fix: only detect global mixins when Vue.devtools: true
2019-10-09 11:43:44 +02:00
Pim 35b7099a07 fix: still traverse children when metainfo doesnt return object (#469)
* chore: ignore isServer for coverage

* fix: still traverse children when metainfo doesnt return object
2019-10-09 11:31:56 +02:00
pimlie 355e172426 Revert "refactor: batch updates using requestIdleCallback, use setTimeout as fallback"
This reverts commit 8c75ec1356.
2019-10-08 13:11:50 +02:00
pimlie 2ce5177ba4 fix: accept and pass options as second arg for generate 2019-10-07 23:39:00 +02:00
pimlie 8c75ec1356 refactor: batch updates using requestIdleCallback, use setTimeout as fallback 2019-10-03 22:41:23 +02:00
pimlie f745059270 feat: add option waitOnDestroyed 2019-09-17 13:55:29 +02:00
pimlie d43b77cce6 feat: add options debounceWait 2019-09-17 13:55:29 +02:00
pimlie 54ea6c6b33 refactor: prefer functions over closures for hooks 2019-09-17 13:55:29 +02:00
pimlie ee12bfcc90 chore: dist size improvements
chore: configure terser to mangle internal properties

chore: do not use default value assignment in function args
2019-09-17 13:55:29 +02:00
pimlie a2f0e7df3c test: add tests for new functionalities 2019-09-17 13:55:29 +02:00
pimlie c1b01b991f chore: add missing 2019-09-17 13:55:29 +02:00
pimlie 9eba2b558a refactor: small bundle size improvements 2019-09-17 13:55:29 +02:00
pimlie 9d14387cda feat: enable setting refreshOnceOnNavigation during runtime 2019-09-17 13:55:29 +02:00
pimlie b73b8ede03 chore: fix lint 2019-09-17 13:55:29 +02:00
pimlie d9b0ab29da feat: add support for setting attributes from multiple apps
chore: improve build size
2019-09-17 13:55:29 +02:00
pimlie 0ab76ee16b feat: add possibility to add additional meta info
refactor: server injectors

feat: add head, bodyPrepend, bodyAppend injectors

refactor: create browserbuild through rollup replace (not separate entry)
2019-09-17 13:55:29 +02:00
pimlie 0e49a9c43e refactor: minimize function calls / use of bind 2019-09-12 17:19:55 +02:00
pimlie ae98f65511 chore: lint & fix test 2019-09-12 15:43:09 +02:00
pimlie c344d60d5f fix: use computed prop (which uses caching) instead of calling the fn directly 2019-09-12 15:20:13 +02:00
pimlie 631cc9c9c9 refactor: destroyed never runs on server anyway 2019-09-12 12:33:47 +02:00
pimlie ec7b1fbefd fix: workaround for memoryleak in destroyed hook 2019-08-30 18:10:15 +02:00
pimlie 2c0c4c3b52 fix: dont assign to global console 2019-08-03 10:48:30 +02:00
Pim 6907f9ac98 fix: meta content templates (#429)
* examples: add content templates to ssr example

* fix: improve meta content templates

* chore: cleanup debug helper

* refactor: split long if into variables
2019-08-03 10:44:34 +02:00
pimlie b795671a95 refactor: switch args for generate 2019-07-28 16:47:00 +02:00
pimlie cb2758eb0f feat: support generating tags directly from metaInfo object 2019-07-28 16:21:32 +02:00
pimlie 931c0c4e88 refactor: optimize callback attribute 2019-07-28 16:21:32 +02:00
Pim 0bf0ceb756 test: use build/dist for e2e testing (#421)
* test: use build/dist for e2e testing

to prevent errors due to wrong build configs

* test: use wrong build conf to test the test

* test: exclude dist for babel-loader in test build

* chore: optimize more for ie9

prefer not to use language features which needs to be transpiled for ie9. Eg for..of to forEach and no spreads

* fix: continue
2019-07-27 17:17:30 +02:00
Pim 51fe6ea6f8 feat: support json content (without disabling sanitizers) (#415)
* feat: add json prop to bypass sanitizers

* chore: fix lint

* feat: escape keys as well

test: fix json escaping

* add escapeKeys into escapeOptions
2019-07-24 14:11:13 +02:00
Pim fc71e1f1c4 feat: enable onload callbacks (#414)
* refactor(examples): run ssr example from server

* chore: switch to babel for build

buble complains too much

* feat: enable loaded callbacks

feat: add skip option

* examples: add async-callback browser example

* examples: fix server

* examples(ssr): add reactive script with callback

* fix: also skip on ssr

* chore: remove unused var

* feat: only add mutationobserver if DOM is still loading

feat: disconnect mutation observer once DOM has loaded

* examples: pass vmid to loadCallback instead of el

* feat: also support load callbacks for link/style tags

* test: add unit tests for load

* test: add load e2e test

* chore: fix lint

* chore: remove unused files

* test: fix e2e load callback test

* test: fix attempt

* examples: ie9 compatiblity

destructuring doesnt work in ie9

* fix: add onload attribute on ssr

dont rely on mutationobserver

* chore: lint ci conf

* refactor: remove loadCallbackAttribute config option

test: fix coverage for load

* test: improve coverage

* fix: only use console when it exists (for ie9)

* chore: fix coverage
2019-07-24 10:18:40 +02:00
Pim 05163a77a8 feat: add option for prepending (no)script to body (#410)
* feat: add option for prepending (no)script to body

* test: use browser getUrl

* refactor: use pbody insteadn of pody

* test: add prepend/append body generator test

* test: add prepend body updater test

* chore: remove typo
2019-07-17 22:26:33 +02:00
pimlie 6efcdf10bd fix: dont update title on client with falsy value except empty string 2019-07-16 11:36:48 +02:00
pimlie 50c05090ae fix: also use ssrAppId for client update 2019-07-16 10:49:19 +02:00
pimlie b0c85e5301 feat: make ssr app id configurable 2019-07-16 10:04:17 +02:00
pimlie 9cf6d323db feat: auto add ssrAttribute to htmlAttrs 2019-07-16 09:34:50 +02:00
Louis-Marie Michelin 39ef28752b fix: don't generate <title> tag if metaInfo.title is null or false (#409) 2019-07-16 09:32:07 +02:00
pimlie 56f6577e25 chore: fix lint 2019-07-11 21:43:05 +02:00
pimlie 1d9072a3af fix: only show boolean attrs with truthy value 2019-07-11 20:56:34 +02:00
Seth Fitzsimmons f1511ac566 fix: ensure hasAttribute exists on $root.$el
If ...$el is a comment node (which appears to happen during initialization under some circumstances), it will be truthy but won't have `hasAttribute`.
2019-06-26 20:59:02 +02:00
pimlie bfeab1754e fix: add warning for v1 boolean attribute syntax 2019-06-22 16:59:23 +02:00
pimlie 90f9710f26 fix: dont change title when value is undefined (fix #396) 2019-06-22 16:15:49 +02:00
pimlie ecd725dd58 fix: $meta can be called server side before app is initiated 2019-06-11 16:15:29 +02:00
pimlie 623970d5fb fix: use simple polyfilled includes method 2019-06-10 12:28:37 +02:00
pimlie 8ab63b4451 test: prevent plugin install twice 2019-06-09 20:44:42 +02:00
pimlie 8b7b991e63 fix: allow _hasMetaInfo to be configurable 2019-06-09 20:30:00 +02:00
pimlie 094fd9d14c fix: prevent vue-meta plugin to be installed twice 2019-06-09 20:16:38 +02:00
pimlie b2a7a8449b Revert "fix: set ssr appId in mounted hook"
This reverts commit 2dd1697ead.
2019-06-09 13:54:15 +02:00
pimlie 2dd1697ead fix: set ssr appId in mounted hook
vm. is not yet set in beforeMount
2019-06-09 12:22:18 +02:00
pimlie eb4980c9de fix: use empty string value for boolean attributes on client side (fixes #381) 2019-06-07 09:58:32 +02:00