vuejs / ui Goto Github PK
View Code? Open in Web Editor NEWπ» UI components for official Vue organization apps
Home Page: https://vuejs.github.io/ui/
π» UI components for official Vue organization apps
Home Page: https://vuejs.github.io/ui/
Brand new to vue, tried to follow this Medium article Vue UI: A First Look
Using OS X 10.11.6, node 8.11.3, vue 3.0.0-rc.4
$sudo npm install -g @vue/cli
+ @vue/[email protected]
added 693 packages in 28.583s
$ vue ui
ERROR Error: Cannot find module 'read-pkg'
Error: Cannot find module 'read-pkg'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js:5:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
To fix it, had to manually install a dependency.
$sudo npm install -g read-pkg
I assume this should be done automatically.
I have no idea how this would be achieved since i have no idea how projects are currently stored, but I have a whole list of SPA's that are all called "frontend", so I have no idea what I'm looking at when I pull up the ui dashboard. I just accidentally made a bunch of changes to one that I wasn't even intending to work on.
It would be great if Vue UI projects could be "nicknamed" by something besides the last dir in path.
I can't use it with nuxt js, would you please provide some hint.
I have followed nuxtjs plugin guide, but it is not working.
This is an awesome library, but I faild to use it for my site https://github.com/moyummy/vue-static
As a simple example, I modify vue-static/src/app/index.js
like this:
import Vue from 'vue'
import router from './router'
import store from './store'
import VueUi from '@vue/ui'
import '../lib/github.com/vuejs/ui/0.2.5/vue-ui.css!css'
Vue.use(VueUi)
new Vue({
el: '#app',
router,
store,
template: '<VueLoadingBar unknown/>'
})
However, it gives me error:
vue.js:597 [Vue warn]: Unknown custom element: <VueLoadingBar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
(found in <Root>)
warn @ vue.js:597
I checked _installedPlugins
in console
Vue._installedPlugins
(3) [{β¦}, Ζ, {β¦}]
0:{Store: Ζ, install: Ζ, version: "3.0.1", mapState: Ζ, mapMutations: Ζ, β¦}
1:Ζ (t)
2:{VueUi: {β¦}, regeneratorRuntime: {β¦}}
This is different from when I imported it and made it work through html script tag
Vue._installedPlugins
(5) [{β¦}, {β¦}, {β¦}, {β¦}, {β¦}]
0:{version: "0.4.3", install: Ζ}
1:{install: Ζ, options: {β¦}}
2:{version: "0.4.4", install: Ζ}
3:{install: Ζ}
4:{version: "0.2.5", install: Ζ}
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://unpkg.com/@vue/[email protected]/dist/vue-ui.css"/>
</head>
<body>
<div id="app"></div>
<script src="http://unpkg.com/[email protected]/dist/vue.js"></script>
<script src="http://unpkg.com/@vue/[email protected]/dist/vue-ui.min.js"></script>
<script>new Vue({el:'#app',template:'<VueLoadingBar unknown/>'})</script>
</body>
</html>
Could anybody provide some suggestions? Thanks.
Got it, it's just declare module '@vue/ui'
Hello,
1-Is there any grid system?
2-Responsive Sidebar is really good.
3-Size of complied version.
Brand new to vue, tried to follow this Medium article Vue UI: A First Look
Using OS X 10.11.6, node 8.11.3, vue 3.0.0-rc.4
When trying to "Add vue-router" or "Add vuex", the vue ui stays with a spinner.
On the console I see an error output:
$ vue ui
π Starting GUI...
π Ready on http://localhost:8000
TypeError: this.cwd is not a function
at PluginApi.getCwd (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/api/PluginApi.js:418:17)
at install (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/ui-defaults/suggestions.js:77:23)
at Object.handler (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/ui-defaults/suggestions.js:19:19)
at Object.activate (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/suggestions.js:82:31)
at suggestionActivate (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/schema/suggestion.js:55:67)
at resolveFieldValueOrError (/usr/local/lib/node_modules/@vue/cli/node_modules/graphql/execution/execute.js:531:18)
at resolveField (/usr/local/lib/node_modules/@vue/cli/node_modules/graphql/execution/execute.js:495:16)
at /usr/local/lib/node_modules/@vue/cli/node_modules/graphql/execution/execute.js:339:18
at /usr/local/lib/node_modules/@vue/cli/node_modules/graphql/jsutils/promiseReduce.js:25:10
at Array.reduce (<anonymous>)
Add Licence file, so we can use awesome minimal components in other open-source projects
Currently we are using nexus repository to publish our packages instead of npm. We can directly download our private repositories from nexus with just one simple .npmrc file and one prefix on the package name (like @company/my-package). It is perfectly working with terminal, but in vue ui, not. Vue ui uses algolia. And Algolia searches on npm repository.
So, can I extend this search source with a configuration or is there any way to provide new search source to the vue ui to install our private packages via nexus?
Unsure of what prompted this, but the output in the Vue UI suddenly stopped its text parsing behavior when looking at the output view when serving a project.
I have updated to the latest Vue CLI and used a previous build of the project and there has been no change.
EDIT: Posted in wrong repo, whoops.
3.2.1
Environment Info:
System:
OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (8) x64 Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Binaries:
Node: 11.5.0 - /usr/bin/node
Yarn: Not Found
npm: 6.5.0 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmGlobalPackages:
@vue/cli: 3.2.1
Selected tab indicator stays under its button at all times
Selected tab indicator stays in place even though its button has shifted due to content change (language switch)
GitHub Issue with pics #11
Hello,
Do you guys still plan on releasing v1 ?
Thanks
I created a firebase project in a folder, and tried to create a vue app inside the folder with Vue UI. This didn't work, but threw an error to say the folder already existed. I ran vue create <folder-name>
instead, and it gave me the option to overwrite
or merge
.
It would be great to have an overwrite/merge option on the UI, rather than just an error.
@Akryum thanks for give us this great ui.
Here's my issue.
I try to use @vue/ui in electron, but find an issue when using v-tooltip directive. In order to reproduce it I create a demo project https://github.com/gary-dgc/test-proj
Itβs simple that I just put following in the App.vue, when you start the electron, youβll find the tooltip on button doesnβt work and get error log in console.
Cases I tried:
1- But if you show App.vue in plain web vue project, it works fine.
2- If leave VueDropdown or Vuebutton only one component in App.vue, it works fine.
@vue/ui version: 0.10.5
`/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:3448 [Vue warn]: Error in mounted hook: "TypeError: Cannot read property '$el' of undefined"
found in
--->
warn @ /gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:3448
/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:4717 TypeError: Cannot read property '$el' of undefined
at VueComponent.popper-node (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:12783:48)
at VueComponent.init (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:11706:34)
at VueComponent.mounted (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:11656:12)
at invokeWithErrorHandling (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:4683:59)
at callHook (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:7042:9)
at Object.insert (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:5968:9)
at invokeInsertHook (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:9169:30)
at Vue.patch [as patch] (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:9388:7)
at Vue._update (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:6768:21)
at Vue.updateComponent (/gdev/gp-node/test-proj/node_modules/@vue/ui/dist/vue-ui.umd.js:6889:12)`
A migration is planned to migrate to Tailwind and expose a tailwind configuration that can be used by user projects.
Make greys more neutral so it fits in browser devtools.
if use the latest vuejs with VueButton ,it will print
[Vue warn]: The .native modifier for v-on is only valid on components but it was used on .
here is the feature that cause this problem .
It suggest that using .native incorrectly: it should be used only on components not on elements.
I would like to know what icon module is used in this module, because I don't think the demo is showing all available icons in this module.
I already tried to use an icon from the material-design-icon
package but it doesn't work.
Also, why is there no documentation for this awesome module, which almost have 1k stars? I know this module is used internally in core Vue projects, but that's still not a good excuse for not having a proper documentation.
You could generate an automatic documentation from components props.
I recently analyzed the size of my app bundle with webpack-bundle-analyze
and it looks like @vue/ui/dist/vue-ui.esm.js
takes a lot of size in my app bundle (around 1/3 of the total size).
I took a look at the vue-ui.esm.js
bundle and indeed there is some sort of inline XML taking a lot of space at the beginning of the file (I extracted this XML to another file and it's 279k characters which is around 280 ko).
This XML seems to be related to icons used in the library (Material Design Icons?) as I find many XML symbols IDs with names like ic_account_balance_wallet
or ic_account_circle
.
Is there a reason for the icon library content to be injected in the vue.esm.js
instead of using a .css
file of the icon library? Because I would like to use PurgeCSS on non-used style imported in my project, which is not possible the way @vue/ui
dist output is actually.
Example of what the XML contains:
<symbol viewBox=\"0 0 24 24\" id=\"ic_account_circle_24px\"><path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 0 1-6 3.22z\"/></symbol>
Here is my code, I want linked in browser, that seems does't compile the ui
<link rel="stylesheet" href="../dist/vue-ui.css">
<body>
<div id="app">
<vue-button>Test</vue-button>
</div>
<!-- built files will be auto injected -->
<script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>
<script src="../dist/vue-ui.min.js"></script>
</body>
@Akryum Guillaume Chau ,
one quite amazing ui, when involved in my project , there always report this warning, even there is no functionality problem.
is it one known issue, or is there some special configuration needed?
thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.