-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
127 additions
and
175 deletions.
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
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,16 @@ | ||
import pluginVue from 'eslint-plugin-vue'; | ||
export default [ | ||
// add more generic rulesets here, such as: | ||
// js.configs.recommended, | ||
...pluginVue.configs['flat/recommended'], | ||
{ | ||
ignores: ['**/node_modules'], | ||
}, | ||
// ...pluginVue.configs['flat/vue2-recommended'], // Use this if you are using Vue.js 2.x. | ||
{ | ||
rules: { | ||
// override/add rules settings here, such as: | ||
// 'vue/no-unused-vars': 'error' | ||
}, | ||
}, | ||
]; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
<script setup lang="ts"> | ||
import { slidy } from '@slidy/core'; | ||
import type { Options } from '@slidy/core'; | ||
import type { Slide } from 'assets/types'; | ||
const { items = [], options = { index: 2, snap: 'center' } } = defineProps<{ | ||
items: Slide[]; | ||
options: Options; | ||
}>(); | ||
const vSlidy = { | ||
mounted(el: HTMLElement) { | ||
console.log(el, items, options); | ||
slidy(el, options); | ||
}, | ||
}; | ||
</script> | ||
|
||
<template> | ||
<section v-slidy> | ||
<img v-for="{ src, alt, width, height } in items" :src :alt :width :height /> | ||
</section> | ||
</template> | ||
|
||
<style> | ||
section { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
section img { | ||
flex: auto; | ||
object-fit: cover; | ||
} | ||
</style> |
File renamed without changes.
File renamed without changes.
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,31 @@ | ||
<script setup lang="ts"> | ||
import { ref, onMounted, type Ref } from 'vue'; | ||
import { Header, Main, Footer } from './components'; | ||
import { Slidy } from '../Slidy'; | ||
import { getRandomSlides } from '@slidy/assets/scripts'; | ||
import type { Slide } from 'assets/types'; | ||
import { Options } from '@slidy/core'; | ||
const options: Ref<Options> = ref({ | ||
axis: 'y', | ||
}); | ||
let items = ref<Slide[] | undefined>([]); | ||
onMounted(async () => { | ||
items.value = await getRandomSlides(); | ||
console.log(items.value); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<Header /> | ||
<Main> | ||
<Slidy :items :options /> | ||
</Main> | ||
<Footer /> | ||
</template> | ||
|
||
<style> | ||
@import './assets/dev.css'; | ||
</style> |
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 @@ | ||
export {}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions
8
packages/vue/public/components/Header.vue → packages/vue/src/dev/components/Header.vue
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,12 +1,16 @@ | ||
<script setup> | ||
import pkg from '../../../package.json'; | ||
</script> | ||
|
||
<template> | ||
<header> | ||
<img id="slidy-logo" alt="Slidy" width="50" height="50" src="favicon.png" /> | ||
<h3> | ||
Slidy | ||
<span>3.1.0</span> | ||
<span>{{ pkg.version }}</span> | ||
<sub>vueJS</sub> | ||
<sub id="stats" /> | ||
</h3> | ||
<button id="dark" @click="activate(this, dark)">dark</button> | ||
</header> | ||
</template> | ||
</template> |
File renamed without changes.
File renamed without changes.
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,11 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outFile": "dist/index.d.ts", | ||
}, | ||
"exclude": [ | ||
"dist", | ||
"public", | ||
"src/dev/*" | ||
] | ||
} |
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,11 +1,14 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outFile": "dist/index.d.ts", | ||
"isolatedModules": false, | ||
"jsx": "preserve" | ||
}, | ||
"include": [ | ||
"src/*" | ||
"src/**/*", | ||
], | ||
"exclude": [ | ||
"dist", | ||
"public" | ||
] | ||
} |
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