Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Godofbrowser/vuejs-dialog
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: Godofbrowser/vuejs-dialog
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 8,974 additions and 20,172 deletions.
  1. +15 −0 .eslintrc.cjs
  2. +51 −0 .github/workflows/docs.yml
  3. +31 −0 .gitignore
  4. +8 −8 .npmignore
  5. +1 −0 .nvmrc
  6. +8 −0 .prettierrc.json
  7. +7 −2 .travis.yml
  8. +0 −20 LICENSE
  9. +21 −427 README.md
  10. +0 −1 dist/vuejs-dialog-mixin.min.js
  11. +0 −446 dist/vuejs-dialog.min.css
  12. +0 −1 dist/vuejs-dialog.min.js
  13. +6 −0 docs/.gitignore
  14. +27 −0 docs/.vuepress/client.js
  15. +58 −0 docs/.vuepress/config.js
  16. +13 −0 docs/.vuepress/entranceApp.js
  17. BIN docs/.vuepress/public/images/custom-view.png
  18. BIN {src/docs/img → docs/.vuepress/public/images}/demo.gif
  19. BIN {src/docs/img → docs/.vuepress/public/images}/html-enabled.png
  20. +512 −0 docs/1.x.md
  21. +20 −0 docs/components/examples/FeaturesExampleAlert.vue
  22. +21 −0 docs/components/examples/FeaturesExampleConfirm.vue
  23. +22 −0 docs/components/examples/FeaturesExampleConfirmHard.vue
  24. +23 −0 docs/components/examples/FeaturesExampleConfirmSoft.vue
  25. +10 −0 docs/components/examples/FeaturesExampleDirective.vue
  26. +25 −0 docs/components/examples/FeaturesExamplePrompt.vue
  27. +24 −0 docs/components/examples/OptionsExampleAnimation.vue
  28. +24 −0 docs/components/examples/OptionsExampleLoader.vue
  29. +37 −0 docs/components/examples/UIExamplesButton.vue
  30. +19 −0 docs/components/examples/UIExamplesWrapper.vue
  31. +0 −776 docs/css/app.main.css
  32. +16 −0 docs/demos.md
  33. +43 −0 docs/digging-deeper.md
  34. +37 −0 docs/features.md
  35. +0 −21 docs/index.html
  36. +143 −0 docs/index.md
  37. +0 −1 docs/js/app.main.js
  38. +1 −0 env.d.ts
  39. +13 −0 index.html
  40. +0 −16,410 package-lock.json
  41. +57 −72 package.json
  42. +5,862 −0 pnpm-lock.yaml
  43. +0 −5 postcss.config.js
  44. BIN public/favicon.ico
  45. +86 −0 src/App.vue
  46. +86 −0 src/assets/base.css
  47. +1 −0 src/assets/logo.svg
  48. +22 −0 src/assets/main.css
  49. +41 −0 src/components/HelloWorld.vue
  50. +88 −0 src/components/TheWelcome.vue
  51. +87 −0 src/components/WelcomeItem.vue
  52. +11 −0 src/components/__tests__/HelloWorld.spec.ts
  53. +7 −0 src/components/icons/IconCommunity.vue
  54. +7 −0 src/components/icons/IconDocumentation.vue
  55. +7 −0 src/components/icons/IconEcosystem.vue
  56. +7 −0 src/components/icons/IconSupport.vue
  57. +19 −0 src/components/icons/IconTooling.vue
  58. +0 −321 src/docs/components/app.vue
  59. +0 −21 src/docs/index.html
  60. +0 −18 src/docs/js/app.js
  61. +0 −44 src/docs/js/translations.js
  62. +0 −72 src/docs/js/translations/en.js
  63. +0 −71 src/docs/js/translations/es.js
  64. +0 −71 src/docs/js/translations/zh.js
  65. +0 −1 src/docs/resources/translations/en.json
  66. +0 −196 src/docs/scss/app.scss
  67. +19 −0 src/main.ts
  68. +8 −0 src/plugin/components/{btn-loader.vue → ButtonLoader.vue}
  69. +46 −0 src/plugin/components/CancelButton.vue
  70. +97 −0 src/plugin/components/DialogApp.vue
  71. +307 −0 src/plugin/components/DialogWindow.vue
  72. +97 −0 src/plugin/components/OkButton.vue
  73. +0 −35 src/plugin/components/cancel-btn.vue
  74. +0 −122 src/plugin/components/dialog-window.vue
  75. +0 −79 src/plugin/components/dialog.vue
  76. +0 −80 src/plugin/components/ok-btn.vue
  77. +2 −2 src/plugin/components/views/default-view.vue
  78. +53 −0 src/plugin/constants.ts
  79. +96 −0 src/plugin/directive.dialog.ts
  80. +5 −0 src/plugin/index.ts
  81. +57 −0 src/plugin/interface.ts
  82. +0 −45 src/plugin/js/constants.js
  83. +0 −96 src/plugin/js/directives.js
  84. +0 −102 src/plugin/js/index.js
  85. +0 −36 src/plugin/js/mixins/btn-mixin.js
  86. +12 −3 src/plugin/js/mixins/dialog-mixin.js
  87. +0 −19 src/plugin/js/mixins/message-mixin.js
  88. +0 −44 src/plugin/js/utilities.js
  89. +137 −0 src/plugin/promise.dialog.ts
  90. +1 −0 src/plugin/styles/default/_layout.scss
  91. +48 −0 src/plugin/utilities.ts
  92. +12 −0 src/plugin/vue-shim.d.ts
  93. +28 −0 src/router/index.ts
  94. +9 −0 src/views/AboutView.vue
  95. +44 −0 src/views/CompView.vue
  96. +117 −0 src/views/IndexView.vue
  97. +9 −0 src/views/VueHomeView.vue
  98. +0 −42 test/unit/karma.config.js
  99. +0 −46 test/unit/specs/plugin/behaviour-for-alert.spec.js
  100. +0 −57 test/unit/specs/plugin/behaviour-for-confirm.spec.js
  101. +0 −57 test/unit/specs/plugin/main.spec.js
  102. +0 −52 test/unit/specs/utilities/main.spec.js
  103. +0 −10 test/unit/utilities/helpers.js
  104. +0 −41 test/unit/utilities/hooks.js
  105. +0 −50 test/unit/utilities/initializers.js
  106. +20 −0 tsconfig.app.json
  107. +14 −0 tsconfig.json
  108. +19 −0 tsconfig.node.json
  109. +11 −0 tsconfig.vitest.json
  110. +47 −0 vite-lib.config.ts
  111. +21 −0 vite.config.ts
  112. +14 −0 vitest.config.ts
  113. +0 −64 webpack.base.config.js
  114. +0 −33 webpack.config.js
  115. +0 −41 webpack.docs.config.js
  116. +0 −11 webpack.test.config.js
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: docs

on:
# trigger deployment on every push to main branch
push:
branches: [master]
# trigger deployment manually
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
# fetch all commits to get last updated time or other git log info
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
# choose pnpm version to use
version: 8
# install deps with pnpm
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# choose node.js version to use
node-version: 20
# cache deps for pnpm
cache: pnpm

# run build script
- name: Build VuePress site
run: pnpm docs:build

# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
# deploy to gh-pages branch
target_branch: gh-pages
# deploy the default output dir of VuePress
build_dir: docs/.vuepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
dist-app
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
16 changes: 8 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.idea
.gitignore
node_modules/
src/
docs/
test/
*.log
.tmp
# Ignore everything
*

# Don't ignore the dist/ folder's content
!dist/*

# Don't ignore the package.json file
!package.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.0
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
language: node_js
node_js:
- "node"
node_js:
- 8
cache:
directories:
- node_modules
script:
- npm run test
20 changes: 0 additions & 20 deletions LICENSE

This file was deleted.

Loading