mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
nuxt setup, tailwind
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import vSelect from "../src/components/Select";
|
import vSelect from "../src/components/Select";
|
||||||
import countries from "../docs/.vuepress/data/countryCodes";
|
import countries from "../docs/data/countryCodes";
|
||||||
import books from "../docs/.vuepress/data/books";
|
import books from "../docs/data/books";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { vSelect },
|
components: { vSelect },
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
.nuxt
|
||||||
|
dist
|
||||||
@@ -18,5 +18,5 @@ module.exports = [
|
|||||||
"@vuepress/plugin-active-header-links",
|
"@vuepress/plugin-active-header-links",
|
||||||
"@vuepress/plugin-search",
|
"@vuepress/plugin-search",
|
||||||
"@vuepress/plugin-nprogress",
|
"@vuepress/plugin-nprogress",
|
||||||
require('../github/index')
|
require('../../github/index')
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,54 +0,0 @@
|
|||||||
<script>
|
|
||||||
/**
|
|
||||||
* @see https://ethical-ad-client.readthedocs.io/en/latest/
|
|
||||||
*/
|
|
||||||
export default {
|
|
||||||
render(h) {
|
|
||||||
return h("div", {
|
|
||||||
attrs: {
|
|
||||||
id: "ads",
|
|
||||||
"data-ea-publisher": "vue-select",
|
|
||||||
"data-ea-type": "image"
|
|
||||||
},
|
|
||||||
class: "flat horizontal"
|
|
||||||
});
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.load();
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
$route(to, from) {
|
|
||||||
if (
|
|
||||||
to.path !== from.path &&
|
|
||||||
// Only reload if the ad has been loaded
|
|
||||||
// otherwise it's possible that the script is appended but
|
|
||||||
// the ads are not loaded yet. This would result in duplicated ads.
|
|
||||||
[...this.$el.classList].includes("loaded")
|
|
||||||
) {
|
|
||||||
this.$el.innerHTML = "";
|
|
||||||
this.$el.classList.remove("loaded");
|
|
||||||
this.load();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
load() {
|
|
||||||
const s = document.createElement("script");
|
|
||||||
s.id = "_ads_js";
|
|
||||||
s.src = `https://media.ethicalads.io/media/client/ethicalads.min.js`;
|
|
||||||
s.async = "async";
|
|
||||||
this.$el.appendChild(s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
#ads {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
min-height: 264px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extend: '@vuepress/theme-default',
|
|
||||||
};
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<template>
|
|
||||||
<ParentLayout></ParentLayout>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ParentLayout from "@parent-theme/layouts/Layout.vue";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
ParentLayout,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
#ads {
|
|
||||||
border-bottom: 1px solid #eaecef;
|
|
||||||
}
|
|
||||||
#ads + .sidebar-links {
|
|
||||||
padding-top: 1rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
+2
-2
@@ -22,8 +22,8 @@ developer experience, and customization.
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
Vue Select aims to be as lightweight as possible, while maintaining high standards for accessibility,
|
Vue Select aims to be as lightweight as possible, while maintaining high standards for accessibility,
|
||||||
developer experience, and customization. Huge thanks to the [sponsors](sponsors.md) and
|
developer experience, and customization. Huge thanks to the [sponsors](content/sponsors.md) and
|
||||||
[contributors](contributors.md) that make Vue Select possible!
|
[contributors](content/contributors.md) that make Vue Select possible!
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import mountCodePen from '../utils/codePen';
|
import mountCodePen from '../utils/codePen.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import countryCodes from '../data/countryCodes';
|
import countryCodes from '../data/countryCodes.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CountrySelect',
|
name: 'CountrySelect',
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
import books from "../data/books";
|
import books from "../data/books.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import countries from '../data/countries';
|
import countries from '../data/countries.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "InfiniteScroll",
|
name: "InfiniteScroll",
|
||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import books from '../data/books';
|
import books from '../data/books.js';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return { selected: [] }
|
return { selected: [] }
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import countries from '../data/countries';
|
import countries from '../data/countries.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import countries from '../data/countries';
|
import countries from '../data/countries.js';
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
countries,
|
countries,
|
||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import countries from '../data/countries'
|
import countries from '../data/countries.js'
|
||||||
import { createPopper } from '@popperjs/core';
|
import { createPopper } from '@popperjs/core';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -164,9 +164,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import vSelect from '../../../src/components/Select.vue';
|
import vSelect from '../../src/components/Select.vue';
|
||||||
import countries from '../data/countryCodes';
|
import countries from '../data/countryCodes.js';
|
||||||
import books from '../data/books';
|
import books from '../data/books.js';
|
||||||
|
|
||||||
const defaultConfig = () => ({
|
const defaultConfig = () => ({
|
||||||
options: countries,
|
options: countries,
|
||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import books from '../data/books';
|
import books from '../data/books.js';
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
books: () => books,
|
books: () => books,
|
||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import books from '../data/books'
|
import books from '../data/books.js'
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
books,
|
books,
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
sidebarDepth: 0
|
|
||||||
---
|
|
||||||
|
|
||||||
# Contributors
|
|
||||||
|
|
||||||
Vue Select is supported by a community of awesome contributors! Without their contributions,
|
|
||||||
the package would not be what it is today.
|
|
||||||
|
|
||||||
<Contributors />
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const clientDynamicModules = require('./clientDynamicModules');
|
const clientDynamicModules = require('./clientDynamicModules.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
clientDynamicModules: async () => await clientDynamicModules(),
|
clientDynamicModules: async () => await clientDynamicModules(),
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<template></template>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export default {
|
||||||
|
env: {},
|
||||||
|
buildModules: ["@nuxtjs/tailwindcss"],
|
||||||
|
};
|
||||||
+19
-24
@@ -1,32 +1,27 @@
|
|||||||
{
|
{
|
||||||
"name": "@vue-select/docs",
|
"name": "@vue-select/docs",
|
||||||
"version": "1.0.0",
|
"version": "2.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vuepress dev",
|
"dev": "nuxt",
|
||||||
"build": "vuepress build",
|
"build": "nuxt build",
|
||||||
"build:preview": "cross-env DEPLOY_PREVIEW=true vuepress build"
|
"generate": "nuxt generate",
|
||||||
|
"start": "nuxt start"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@octokit/graphql": "^4.3.1",
|
"@nuxt/content": "^1.14.0",
|
||||||
"@popperjs/core": "^2.1.0",
|
"@nuxtjs/tailwindcss": "^4.2.1",
|
||||||
"@vuepress/plugin-active-header-links": "^1.4.0",
|
"@octokit/graphql": "^4.6.4",
|
||||||
"@vuepress/plugin-google-analytics": "^1.4.0",
|
"@popperjs/core": "^2.9.2",
|
||||||
"@vuepress/plugin-nprogress": "^1.4.0",
|
"autoprefixer": "^10.3.1",
|
||||||
"@vuepress/plugin-pwa": "^1.4.0",
|
"axios": "^0.21.1",
|
||||||
"@vuepress/plugin-register-components": "^1.4.0",
|
"date-fns": "^2.23.0",
|
||||||
"@vuepress/plugin-search": "^1.4.0",
|
"fuse.js": "^6.4.6",
|
||||||
"axios": "^0.19.2",
|
"nuxt": "^2.15.7",
|
||||||
"cross-env": "^7.0.2",
|
"octonode": "^0.10.2",
|
||||||
"date-fns": "^2.11.0",
|
"postcss": "^8.3.6",
|
||||||
"dotenv": "^8.2.0",
|
"prettier": "^2.3.2",
|
||||||
"fuse.js": "^6.4.0",
|
"tailwindcss": "^2.2.7",
|
||||||
"gh-pages": "^2.2.0",
|
"vuex": "^3.6.2"
|
||||||
"node-sass": "^4.12.0",
|
|
||||||
"octonode": "^0.9.5",
|
|
||||||
"sass-loader": "^8.0.2",
|
|
||||||
"vue": "^2.6.10",
|
|
||||||
"vuepress": "^1.4.0",
|
|
||||||
"vuex": "^3.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Contributors',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Home.vue',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Sandbox',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Sponsors',
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
sidebar: false
|
|
||||||
editLink: false
|
|
||||||
layout: Sandbox
|
|
||||||
---
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
sidebarDepth: 0
|
|
||||||
---
|
|
||||||
|
|
||||||
<SponsorMe />
|
|
||||||
|
|
||||||
## Sponsors
|
|
||||||
|
|
||||||
<Sponsors />
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
module.exports = {
|
||||||
|
purge: [
|
||||||
|
"./components/**/*.{vue,js}",
|
||||||
|
"./layouts/**/*.vue",
|
||||||
|
"./pages/**/*.vue",
|
||||||
|
"./plugins/**/*.{js,ts}",
|
||||||
|
"./nuxt.config.{js,ts}",
|
||||||
|
],
|
||||||
|
mode: "jit",
|
||||||
|
darkMode: false, // or 'media' or 'class'
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
};
|
||||||
@@ -1 +0,0 @@
|
|||||||
<CodePen url="zZQJKW" height="60"/>
|
|
||||||
+5540
-4211
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user