Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add XML support #182

Merged
merged 19 commits into from
Jun 29, 2020
Merged

feat: add XML support #182

merged 19 commits into from
Jun 29, 2020

Conversation

mathe42
Copy link
Contributor

@mathe42 mathe42 commented Jun 26, 2020

adding Support for XML files

@mathe42 mathe42 changed the title add XML support feat: add XML support Jun 26, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2020

Codecov Report

❗ No coverage uploaded for pull request base (dev@e7d9c7e). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##             dev     #182   +/-   ##
======================================
  Coverage       ?   89.40%           
======================================
  Files          ?       15           
  Lines          ?      519           
  Branches       ?      106           
======================================
  Hits           ?      464           
  Misses         ?       48           
  Partials       ?        7           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7d9c7e...423d12e. Read the comment docs.

@benjamincanac
Copy link
Member

Hey @mathe42,

Thanks for this PR!

Could you also:

  • add in example/content an XML file to demonstrate like the other formats in example/pages/index.vue
  • add in test/fixture/content/formats an XML file to ensure parsing works
  • add in docs/content/en/writing.md a section about XML format

@mathe42
Copy link
Contributor Author

mathe42 commented Jun 26, 2020

Jap. Will work on that.

@mathe42
Copy link
Contributor Author

mathe42 commented Jun 26, 2020

@benjamincanac
All done.

@benjamincanac benjamincanac changed the base branch from master to dev June 26, 2020 14:07
Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! However, I can't install it locally, xml2json seems to use node-expat which causes a build error on Mac OS.

I can't merge this until this issue is solved, do you have and idea on this?

There is an issue related: buglabs/node-xml2json#190

@benjamincanac
Copy link
Member

Actually there are still tiny things missing:

@mathe42
Copy link
Contributor Author

mathe42 commented Jun 26, 2020

I can nearly switch to any xml Parser I will look into https://github.com/Leonidas-from-XIV/node-xml2js

@mathe42
Copy link
Contributor Author

mathe42 commented Jun 26, 2020

@benjamincanac Now it should work. I changed the parser.

@mathe42
Copy link
Contributor Author

mathe42 commented Jun 26, 2020

Documentiation is updated.

@mathe42 mathe42 requested a review from benjamincanac June 27, 2020 20:26
@benjamincanac benjamincanac merged commit d334f1e into nuxt:dev Jun 29, 2020
@benjamincanac
Copy link
Member

@mathe42 Perfect! Thanks 😃

benjamincanac added a commit that referenced this pull request Jun 30, 2020
* feat: global components (#164)

* feat(lib): register nuxt components:dirs hook

* chore(deps): use nuxt v2.13.x

* chore(example): use global components

* chore(docs): use global components

* docs: add section about global components

* Update docs/package.json

Co-authored-by: Sébastien Chopin <[email protected]>

* docs: update global components

* Update writing.md

* chore: remove commitlint

* docs: update deps

* chore(deps): update

* chore(github): add ci on dev branch

Co-authored-by: Sébastien Chopin <[email protected]>

* chore(deps): update lock

* chore(github): add ci on macos

* feat: plugins compatibility (#183)

* feat(lib): backwards compatibility with `plugins` and `basePlugins`

* docs: update for v1.4.0 instead of v2.0.0

* chore(deps): update dependency consola to ^2.14.0 (#184)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update devdependency nuxt to ^2.13.2 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* feat: handle middleware `where` query params (#190)

* feat(lib): handle where query params

* chore(example): add links

* test: add middleware where query params

* docs: add section for where query params

* feat: add XML support (#182)

* add xml file

* add xml

* add dependencies

* Update index.js

* bugfix

* Create xml.xml

* Update index.vue

* Create xml.xml

* Update writing.md

* Update writing.md

* Update utils.js

* fix dependencies

* fix

* update docs

* add config docs

* Update index.md

Co-authored-by: Benjamin Canac <[email protected]>

* docs: clean writing codeblocks

Co-authored-by: Sébastien Chopin <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Sebastian Krüger <[email protected]>
benjamincanac added a commit that referenced this pull request Jul 2, 2020
* feat: global components (#164)

* feat(lib): register nuxt components:dirs hook

* chore(deps): use nuxt v2.13.x

* chore(example): use global components

* chore(docs): use global components

* docs: add section about global components

* Update docs/package.json

Co-authored-by: Sébastien Chopin <[email protected]>

* docs: update global components

* Update writing.md

* chore: remove commitlint

* docs: update deps

* chore(deps): update

* chore(github): add ci on dev branch

Co-authored-by: Sébastien Chopin <[email protected]>

* chore(deps): update lock

* chore(github): add ci on macos

* feat: plugins compatibility (#183)

* feat(lib): backwards compatibility with `plugins` and `basePlugins`

* docs: update for v1.4.0 instead of v2.0.0

* chore(deps): update dependency consola to ^2.14.0 (#184)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update devdependency nuxt to ^2.13.2 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* feat: handle middleware `where` query params (#190)

* feat(lib): handle where query params

* chore(example): add links

* test: add middleware where query params

* docs: add section for where query params

* feat: add XML support (#182)

* add xml file

* add xml

* add dependencies

* Update index.js

* bugfix

* Create xml.xml

* Update index.vue

* Create xml.xml

* Update writing.md

* Update writing.md

* Update utils.js

* fix dependencies

* fix

* update docs

* add config docs

* Update index.md

Co-authored-by: Benjamin Canac <[email protected]>

* docs: clean writing codeblocks

* chore(deps): update all non-major dependencies to ^7.10.4 (#198)

Co-authored-by: Renovate Bot <[email protected]>

* docs: (en) add example for toc (#196)

add an example for table of contents usage

* chore(deps): update devdependency @nuxtjs/module-test-utils to ^1.6.2 (#203)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency p-queue to v6.5.0 (#204)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): try nuxt static

* docs: add code of conduct

* docs: add pull request template

* docs: update readme

* chore(pkg): rename to generate

* chore(deps): update devdependency @nuxtjs/module-test-utils to ^1.6.3 (#205)

Co-authored-by: Renovate Bot <[email protected]>

* docs: improve (#206)

* docs: update

* docs: update

* docs: update

* docs: update design

* docs: update markdown titles scroll position

* docs: small improvements

* docs: add clipboard

* docs: update copy style

Co-authored-by: Sébastien Chopin <[email protected]>

* Add "without" method to type declaration (#208)

* docs: typo + translate EN leftover (#207)

Co-authored-by: Sébastien Chopin <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Sebastian Krüger <[email protected]>
Co-authored-by: Debbie O'Brien <[email protected]>
Co-authored-by: Luke Wiwatowski <[email protected]>
Co-authored-by: jbuiquan <[email protected]>
benjamincanac added a commit that referenced this pull request Jul 2, 2020
* add xml file

* add xml

* add dependencies

* Update index.js

* bugfix

* Create xml.xml

* Update index.vue

* Create xml.xml

* Update writing.md

* Update writing.md

* Update utils.js

* fix dependencies

* fix

* update docs

* add config docs

* Update index.md

Co-authored-by: Benjamin Canac <[email protected]>
benjamincanac added a commit that referenced this pull request Jul 2, 2020
* add xml file

* add xml

* add dependencies

* Update index.js

* bugfix

* Create xml.xml

* Update index.vue

* Create xml.xml

* Update writing.md

* Update writing.md

* Update utils.js

* fix dependencies

* fix

* update docs

* add config docs

* Update index.md

Co-authored-by: Benjamin Canac <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants