-
Notifications
You must be signed in to change notification settings - Fork 0
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
Vue3 #2
base: main
Are you sure you want to change the base?
Vue3 #2
Changes from all commits
1e9ed05
2dd9a6e
ddcb321
0ae84e7
8f9c5cb
f89f5cc
a61fc78
77e6e35
dfda184
b9301bd
10bbe24
e7d4b68
348d7b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist/ | ||
dist/ | ||
*.lock |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
{ | ||
"name": "@teamnovu/vue-cloudinary-image-statamic", | ||
"version": "0.1.1", | ||
"version": "1.0.4", | ||
"description": "Statamic Adapter for @teamnovu/vue-cloudinary-image and @teamnovu/nuxt-cloudinary-image", | ||
"repository": "teamnovu/vue-cloudinary-image-statamic", | ||
"license": "MIT", | ||
"main": "dist/cloudinary-image-statamic.ssr.js", | ||
"main": "dist/cloudinary-image-statamic.esm.js", | ||
"browser": "dist/cloudinary-image-statamic.esm.js", | ||
"module": "dist/cloudinary-image-statamic.esm.js", | ||
"unpkg": "dist/cloudinary-image-statamic.min.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/cloudinary-image-statamic.esm.js", | ||
"require": "./dist/cloudinary-image-statamic.ssr.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist/*", | ||
"src/**/*.vue" | ||
|
@@ -30,7 +37,7 @@ | |
"@rollup/plugin-alias": "^2.2.0", | ||
"@rollup/plugin-commonjs": "^11.1.0", | ||
"@rollup/plugin-replace": "^2.3.2", | ||
"@teamnovu/vue-cloudinary-image": "0.0.11", | ||
"@teamnovu/vue-cloudinary-image": "2.0.0", | ||
"@vue/cli-plugin-babel": "^4.3.1", | ||
"@vue/cli-plugin-eslint": "^4.5.9", | ||
"@vue/cli-service": "^4.3.1", | ||
|
@@ -48,18 +55,18 @@ | |
"rollup": "^2.7.3", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"rollup-plugin-vue": "^5.1.6", | ||
"rollup-plugin-vue": "^6.0.0", | ||
"standard-version": "latest", | ||
"vue": "^2.6.11", | ||
"vue": "^3.2.45", | ||
"vue-template-compiler": "^2.6.11" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isch das die aktuellsti und korrekti version? |
||
}, | ||
"peerDependencies": { | ||
"vue": "^2.6.11" | ||
"vue": "^3.2.45" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,8 @@ | ||
// Import vue component | ||
import component from '@/AppImage.vue' | ||
|
||
// install function executed by Vue.use() | ||
const install = function installAppImageStatamic (Vue, options) { | ||
if (install.installed) return | ||
install.installed = true | ||
|
||
Vue.component('AppImage', component) | ||
} | ||
|
||
// Create module definition for Vue.use() | ||
const plugin = { | ||
install, | ||
} | ||
|
||
// To auto-install on non-es builds, when vue is found | ||
// eslint-disable-next-line no-redeclare | ||
/* global window, global */ | ||
if (process.env.ES_BUILD === 'false') { | ||
let GlobalVue = null | ||
if (typeof window !== 'undefined') { | ||
GlobalVue = window.Vue | ||
} else if (typeof global !== 'undefined') { | ||
GlobalVue = global.Vue | ||
} | ||
if (GlobalVue) { | ||
GlobalVue.use(plugin) | ||
} | ||
export default { | ||
install: (app, options) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mach doch do die aktuellst syntax: install(app, options) {
...
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mach doch do die aktuellst syntax: install(app, options) {
...
} |
||
app.component('AppImage', component) | ||
}, | ||
} | ||
|
||
// Inject install function into component - allows component | ||
// to be registered via Vue.use() as well as Vue.component() | ||
component.install = install | ||
|
||
// Export component by default | ||
export default component | ||
|
||
// It's possible to expose named exports when writing components that can | ||
// also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo'; | ||
// export const RollupDemoDirective = component; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sötts do nid v3 me?