-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migration vers vue3 #8
Merged
Merged
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
074a549
Update README.md
lowzonenose 84597fd
Update README.md
lowzonenose b998f83
Merge branch 'develop'
lowzonenose 89dea36
Merge branch 'develop'
lowzonenose afad6fd
Merge branch 'develop'
lowzonenose 03f2cef
Merge pull request #5 from IGNF/develop
lowzonenose b8f988a
Merge pull request #6 from IGNF/develop
lowzonenose 10ad351
Merge pull request #7 from IGNF/develop
lowzonenose 65a9828
Proposition de migration vue2 vers vue3
lowzonenose 7def806
update geoportal-extensions-openlayers release vol-3.2.22
invalid-email-address 7d30503
update geoportal-extensions-openlayers release vol-3.3.0
invalid-email-address 4ecfd9e
update geoportal-extensions-openlayers release vol-3.3.1
invalid-email-address 7f2ac23
Update package.json
lowzonenose 756f92b
update geoportal-extensions-openlayers release v3.3.2
invalid-email-address 296e534
update geoportal-extensions-openlayers release v3.3.3
invalid-email-address 1df66e5
update geoportal-extensions-openlayers release v3.3.4
invalid-email-address 5437dd2
update geoportal-extensions-openlayers release v3.4.0
invalid-email-address 62583de
Merge branch 'develop'
elias75015 d25340b
Merge branch 'develop'
elias75015 7bbe2a0
update geoportal-extensions-openlayers release v3.4.0
invalid-email-address 1bc1455
Merge pull request #9 from IGNF/develop
lowzonenose 9642688
Migration vue2 vers vue3
lowzonenose dd54453
Merge branch 'master' into feature/migration-vue3
lowzonenose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ | |
*.log | ||
package-lock.json | ||
|
||
|
||
*storybook.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
module.exports = { | ||
"stories": [ | ||
"../src/**/*.stories.mdx", | ||
"../src/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
/** @type { import('@storybook/vue3-webpack5').StorybookConfig } */ | ||
const config = { | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-webpack5-compiler-swc", | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials" | ||
] | ||
} | ||
"@storybook/addon-essentials", | ||
"@chromatic-com/storybook", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-mdx-gfm" | ||
], | ||
framework: { | ||
name: "@storybook/vue3-webpack5", | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: "tag", | ||
}, | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
plugins: [], | ||
// presets: [ | ||
// [ | ||
// "@babel/preset-env" | ||
// ], | ||
// ], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { fn } from '@storybook/test'; | ||
import MyButton from './Button.vue'; | ||
|
||
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories | ||
export default { | ||
title: 'Example/Button', | ||
component: MyButton, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
size: { control: { type: 'select' }, options: ['small', 'medium', 'large'] }, | ||
backgroundColor: { control: 'color' }, | ||
}, | ||
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args | ||
args: { onClick: fn() }, | ||
}; | ||
|
||
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args | ||
export const Primary = { | ||
args: { | ||
primary: true, | ||
label: 'Button', | ||
}, | ||
}; | ||
|
||
export const Secondary = { | ||
args: { | ||
label: 'Button', | ||
}, | ||
}; | ||
|
||
export const Large = { | ||
args: { | ||
size: 'large', | ||
label: 'Button', | ||
}, | ||
}; | ||
|
||
export const Small = { | ||
args: { | ||
size: 'small', | ||
label: 'Button', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<button type="button" :class="classes" @click="onClick" :style="style">{{ label }}</button> | ||
</template> | ||
|
||
<script> | ||
import './button.css'; | ||
import { reactive, computed } from 'vue'; | ||
|
||
export default { | ||
name: 'my-button', | ||
|
||
props: { | ||
label: { | ||
type: String, | ||
required: true, | ||
}, | ||
primary: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
size: { | ||
type: String, | ||
validator: function (value) { | ||
return ['small', 'medium', 'large'].indexOf(value) !== -1; | ||
}, | ||
}, | ||
backgroundColor: { | ||
type: String, | ||
}, | ||
}, | ||
|
||
emits: ['click'], | ||
|
||
setup(props, { emit }) { | ||
props = reactive(props); | ||
return { | ||
classes: computed(() => ({ | ||
'storybook-button': true, | ||
'storybook-button--primary': props.primary, | ||
'storybook-button--secondary': !props.primary, | ||
[`storybook-button--${props.size || 'medium'}`]: true, | ||
})), | ||
style: computed(() => ({ | ||
backgroundColor: props.backgroundColor, | ||
})), | ||
onClick() { | ||
emit('click'); | ||
}, | ||
}; | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
3.4.0 releasée