{{ status }}
++ ID: {{ id }} +
++ Agent version: {{ agentVersion }} +
+From 28f83acc2f3718367aa545d1e39a903bc91d7ac2 Mon Sep 17 00:00:00 2001 From: Oliverio Sousa <47525443+oliveriosousa@users.noreply.github.com> Date: Fri, 6 Aug 2021 14:21:31 +0100 Subject: [PATCH] feat: add example with nuxtjs --- examples/browser-nuxtjs/.editorconfig | 13 ++ examples/browser-nuxtjs/.gitignore | 90 +++++++++ examples/browser-nuxtjs/README.md | 190 ++++++++++++++++++ .../browser-nuxtjs/components/IpfsInfo.vue | 49 +++++ .../browser-nuxtjs/components/NuxtLogo.vue | 11 + .../browser-nuxtjs/components/Tutorial.vue | 119 +++++++++++ examples/browser-nuxtjs/nuxt.config.js | 51 +++++ examples/browser-nuxtjs/package.json | 26 +++ examples/browser-nuxtjs/pages/index.vue | 7 + examples/browser-nuxtjs/plugins/vue-ipfs.js | 10 + examples/browser-nuxtjs/static/favicon.ico | Bin 0 -> 8636 bytes examples/browser-nuxtjs/store/README.md | 10 + examples/browser-nuxtjs/tests/test.js | 27 +++ 13 files changed, 603 insertions(+) create mode 100644 examples/browser-nuxtjs/.editorconfig create mode 100644 examples/browser-nuxtjs/.gitignore create mode 100644 examples/browser-nuxtjs/README.md create mode 100644 examples/browser-nuxtjs/components/IpfsInfo.vue create mode 100644 examples/browser-nuxtjs/components/NuxtLogo.vue create mode 100644 examples/browser-nuxtjs/components/Tutorial.vue create mode 100644 examples/browser-nuxtjs/nuxt.config.js create mode 100644 examples/browser-nuxtjs/package.json create mode 100644 examples/browser-nuxtjs/pages/index.vue create mode 100644 examples/browser-nuxtjs/plugins/vue-ipfs.js create mode 100644 examples/browser-nuxtjs/static/favicon.ico create mode 100644 examples/browser-nuxtjs/store/README.md create mode 100644 examples/browser-nuxtjs/tests/test.js diff --git a/examples/browser-nuxtjs/.editorconfig b/examples/browser-nuxtjs/.editorconfig new file mode 100644 index 00000000..5d126348 --- /dev/null +++ b/examples/browser-nuxtjs/.editorconfig @@ -0,0 +1,13 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/examples/browser-nuxtjs/.gitignore b/examples/browser-nuxtjs/.gitignore new file mode 100644 index 00000000..e8f682ba --- /dev/null +++ b/examples/browser-nuxtjs/.gitignore @@ -0,0 +1,90 @@ +# Created by .ignore support plugin (hsz.mobi) +### Node template +# Logs +/logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# Nuxt generate +dist + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + +# IDE / Editor +.idea + +# Service worker +sw.* + +# macOS +.DS_Store + +# Vim swap files +*.swp diff --git a/examples/browser-nuxtjs/README.md b/examples/browser-nuxtjs/README.md new file mode 100644 index 00000000..de59a0f6 --- /dev/null +++ b/examples/browser-nuxtjs/README.md @@ -0,0 +1,190 @@ +
+
+
+
+
+ Using js-ipfs in a nuxtjs project
+
+
+
+
+ Explore the docs
+ ·
+ View Demo
+ ·
+ Report Bug
+ ·
+ Request Feature/Example
+
+ ID: {{ id }} +
++ Agent version: {{ agentVersion }} +
+
+ We recommend you take a look at the
+ Nuxt documentation, whether you are new or have previous experience with the
+ framework.
+
+ To get started, remove
+ components/Tutorial.vue
+ and start coding in
+ pages/index.vue
. Have fun!
+