Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Next #2

Merged
MichaelGitArt merged 23 commits into main from next
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
171f607
feat: add onClose to default GDialog component
MichaelGitArt Oct 17, 2021
db4b85a
chore: remove unused staff from dev vite config
MichaelGitArt Oct 17, 2021
96ce3e3
fix: hide overlay for fullscreen mode
MichaelGitArt Oct 17, 2021
0911a5d
feat: add local mode for the dialog
MichaelGitArt Oct 17, 2021
7f2216a
chore(pre-release): publish 1.2.0-beta.1
MichaelGitArt Oct 17, 2021
0bd0050
chore: upgrade deps
Nov 30, 2021
4d25d3e
feat: set up type generation
Nov 30, 2021
9d38891
chore: update README
Nov 30, 2021
1e91f01
chore: copy License to /packages/dialog
Nov 30, 2021
710362a
chore(pre-release): publish 1.2.0-beta.5
Nov 30, 2021
b86bc39
chore: add plan to the README
Dec 1, 2021
f9c2d48
fix: remove exporting plugin types in index.ts
Dec 2, 2021
3eec6dd
chore: add comments to plugin entities
Dec 2, 2021
1e12713
chore(pre-release): publish 1.2.0-beta.7
Dec 2, 2021
154d9bf
feat: upgrade dev playground
Dec 5, 2021
9e0d981
feat: upgrade dev playground
Dec 5, 2021
0a09cc2
chore: change local prop order
Dec 5, 2021
df997f7
feat(docs): add description to local prop
Dec 5, 2021
c975b4d
fix: return exporting IDialog interface
Dec 5, 2021
eaa4e7c
chore(release): publish 1.2.0
Dec 5, 2021
e8ce321
chore(demo): upgrade to 1.2.0
Dec 5, 2021
77bc89b
chore(docs): upgrade to 1.2.0
Dec 5, 2021
b5c8018
fix(demo): remove binding string to label tag
Dec 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/demo/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"license": "MIT",
"dependencies": {
"@vueuse/core": "^5.2.0",
"gitart-vue-dialog": "1.1.0"
"gitart-vue-dialog": "^1.2.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.3.0",
"vite": "^2.5.3",
"vite-plugin-windicss": "^1.2.7",
"vue-tsc": "0.3.0",
"vue-tsc": "^0.29.8",
"windicss": "^3.1.6"
}
}
2 changes: 1 addition & 1 deletion packages/demo/src/components/UI/Radio/Radio.vue
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<label v-bind="''">
<label>
<input
type="radio"
:name="computedName"
Expand Down
4 changes: 4 additions & 0 deletions packages/dialog/.npmignore
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!dist/**/*
!LINCENSE
README.md
11 changes: 11 additions & 0 deletions packages/dialog/LICENSE
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MIT License

Copyright (c) 2021 Misha Kryvoruchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The MIT License (MIT)
8 changes: 5 additions & 3 deletions packages/dialog/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

🤯 [Examples](https://michaelgitart.github.io/gitart-vue-dialog/)

🃏 [Plan for the Future](https://trello.com/b/CYcpbq4F/gitart-oss/)

Typescript support, customizable, beautifully animated, lightweight

~9.5 KiB - index.upd.js `gitart-vue-dialog` <br/>
~8.6 KiB - index.es.js `gitart-vue-dialog/dist/index.es.js` <br/>
~1.7 KiB - style.css `gitart-vue-dialog/dist/style.css` <br/>
~9.9 KiB - index.cjs `gitart-vue-dialog` <br/>
~8.9 KiB - index.mjs `gitart-vue-dialog/dist/index.mjs` <br/>
~1.8 KiB - style.css `gitart-vue-dialog/dist/style.css` <br/>


## Instalation
Expand Down
3 changes: 1 addition & 2 deletions packages/dialog/build/build.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ const shell = require('shelljs')

shell.exec('vue-tsc --noEmit')
shell.exec('vite build --config build/vite.config.ts')
shell.exec('cp ./build/index.d.ts ./dist/index.es.d.ts')
shell.exec('cp ./build/index.d.ts ./dist/index.upd.d.ts')
shell.exec('vue-tsc --declaration --emitDeclarationOnly --p build/tsconfig.json')
1 change: 0 additions & 1 deletion packages/dialog/build/index.d.ts
View file Open in desktop

This file was deleted.

9 changes: 9 additions & 0 deletions packages/dialog/build/tsconfig.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../dist",
},
"files": [
"../src/index.ts"
]
}
12 changes: 11 additions & 1 deletion packages/dialog/build/vite.config.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ export default defineConfig({
lib: {
entry: resolve('src/index.ts'),
name: 'index',
fileName: format => `index.${format}.js`,
fileName: format => {
let fileEnd = 'js'

if(format === 'es') {
fileEnd = 'mjs'
}else if (format === 'umd') {
fileEnd = 'cjs'
}

return `index.${fileEnd}`
},
},

rollupOptions: {
Expand Down
10 changes: 10 additions & 0 deletions packages/dialog/dev/.eslintrc.js
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-env node */
module.exports = {
extends: [
'../../../.eslintrc.js',
],

rules: {
'no-undef': 'off',
},
}
25 changes: 6 additions & 19 deletions packages/dialog/dev/Playground.template.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,14 @@
Content
</GDialog>

<button @click="dialog = true">
<button
class="btn"
@click="dialog = true"
>
Open
</button>
</template>

<script lang="ts">
import { ref } from 'vue'
import { GDialog } from 'gitart-vue-dialog'

export default {
name: 'Playground',
components: {
GDialog,
},

setup() {
const dialog = ref(false)

return {
dialog,
}
},
}
<script setup lang="ts">
const dialog = ref(false)
</script>
52 changes: 52 additions & 0 deletions packages/dialog/dev/auto-imports.d.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Generated by 'unplugin-auto-import'
// We suggest you to commit this file into source control
declare global {
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const dialogInjectionKey: typeof import('gitart-vue-dialog')['dialogInjectionKey']
const dialogPlugin: typeof import('gitart-vue-dialog')['plugin']
const effectScope: typeof import('vue')['effectScope']
const EffectScope: typeof import('vue')['EffectScope']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h']
const inject: typeof import('vue')['inject']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: typeof import('vue')['onMounted']
const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref']
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useSlots: typeof import('vue')['useSlots']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
}
export {}
12 changes: 12 additions & 0 deletions packages/dialog/dev/components.d.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399

declare module 'vue' {
export interface GlobalComponents {
GDialog: typeof import('gitart-vue-dialog')['GDialog']
GDialogRoot: typeof import('gitart-vue-dialog')['GDialogRoot']
}
}

export { }
2 changes: 2 additions & 0 deletions packages/dialog/dev/main.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { createApp } from 'vue'

import 'virtual:windi.css'

import App from './App.vue'
import dialogPlugin from './g-dialog'

Expand Down
40 changes: 34 additions & 6 deletions packages/dialog/dev/vite.config.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,20 +1,48 @@
/*eslint-env node*/
import path from 'path'
import { defineConfig, UserConfigExport } from 'vite'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import WindiCSS from 'vite-plugin-windicss'

const resolve = (str: string) => path.resolve(__dirname, str)

export default ({ mode }: { mode: 'production'| 'development' }): UserConfigExport => defineConfig({
export default defineConfig({
root: resolve('.'),
base: mode === 'production'
? '/gitart-vue-dialog/'
: '/',

plugins: [
vue(),
WindiCSS(),
AutoImport({
imports: [
'vue',
{
'gitart-vue-dialog': [
'dialogInjectionKey',
['plugin', 'dialogPlugin'],
],
},
],
dts: resolve('auto-imports.d.ts'),
}),
Components({
resolvers: [
(name: string) => {
if ([
'GDialog',
'GDialogRoot',
].includes(name)) {
return { importName: name, path: 'gitart-vue-dialog' }
}

return
},
],
dts: resolve('components.d.ts'),
}),
WindiCSS({
config: resolve('windi.config.ts'),
}),
],

server: {
Expand Down
25 changes: 25 additions & 0 deletions packages/dialog/dev/windi.config.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineConfig } from 'windicss/helpers'
import plugin from 'windicss/plugin'

export default defineConfig({
attributify: true,
extract: {
include: ['./**/*.{vue,html,jsx,tsx}'],
},
plugins: [
plugin(({ addComponents }) => {
addComponents({
'.btn': {
'backgroundColor': '#3490dc',
padding: '.5rem 1rem',
borderRadius: '.25rem',
color: '#fff',
fontWeight: '600',
'&:hover': {
backgroundColor: '#2779bd',
},
},
})
}),
],
})
21 changes: 13 additions & 8 deletions packages/dialog/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "gitart-vue-dialog",
"version": "1.1.0",
"version": "1.2.0",
"scripts": {
"dev": "vite --config dev/vite.config.ts",
"build": "node build/build.js"
"build": "node build/build.js",
"build:types": "vue-tsc --declaration --emitDeclarationOnly --p ./build/tsconfig.json"
},
"main": "./dist/index.umd.js",
"module": "./dist/index.es.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"types": "dist/index.upd.d.ts",
"types": "dist/index.d.ts",
"keywords": [
"gitart",
"gitart-vue-dialog",
Expand All @@ -42,9 +43,13 @@
"@vitejs/plugin-vue": "^1.6.0",
"sass": "^1.39.0",
"shelljs": "^0.8.4",
"unplugin-auto-import": "^0.5.1",
"unplugin-vue-components": "^0.17.5",
"vite": "^2.5.3",
"vite-plugin-windicss": "^1.5.4",
"vue": "3.2.6",
"vue-tsc": "^0.3.0"
"vue-tsc": "^0.29.8",
"windicss": "^3.2.1"
},
"peerDependencies": {
"vue": "^3.2.6"
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /