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

246 Commits

Author SHA1 Message Date
pimlie e68b53573e feat: refactor of object merge & make vue-router example work 2021-01-18 01:16:28 +01:00
pimlie 5c4ee7a547 fix: resolving arrays (collections still wip) 2020-11-16 00:07:54 +01:00
pimlie 642a62c561 feat: continued progress 2020-11-01 20:53:39 +01:00
pimlie bb04dc068d feat: add deepest resolver (wip)
feat: improve resolver related typing
2020-08-10 02:06:53 +02:00
pimlie 5add8bf83f feat: make attributes part of the metainfo object
feat: support removing old attributes

feat: better support content as either attribute or child
2020-08-02 21:43:55 +02:00
pimlie 5eaa0ab5b6 feat: add support for attributes (wip)
support slots for head/body

make config fully external (while providing defaults users can use)

type fixes
2020-07-26 23:21:06 +02:00
pimlie 27aaf4744a test: add render tests
fix: webpack dev server

chore: use eslint not prettier

unfeat: remove support for comments (its brokenn in Vue, maybe later)
2020-07-26 00:11:28 +02:00
pimlie 28d3fc1923 feat: convert to ts (wip) 2020-06-01 01:05:59 +02:00
jangarcia bb45319574 feat: add amp-boilerplate as boolean attribute (resolves: #530) (#531) 2020-03-21 19:07:08 +01:00
pimlie c74c645d18 fix: support once (with skip) client side (fix #498) 2020-02-26 19:32:32 +01:00
pimlie 21621e13f5 fix: memory leak, use hook events (thanks #522) 2020-02-26 16:23:07 +01:00
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