designrevision / shards-vue Goto Github PK
View Code? Open in Web Editor NEW🌟Shards Vue is a free, beautiful and modern Vue.js UI kit based on Shards.
Home Page: https://designrevision.com/docs/shards-vue/
License: MIT License
🌟Shards Vue is a free, beautiful and modern Vue.js UI kit based on Shards.
Home Page: https://designrevision.com/docs/shards-vue/
License: MIT License
When I use <d-button-group>
in Nuxt, It will be shows these error:
[Vue warn]: Error in beforeCreate hook: "ReferenceError: document is not defined"
found in
---> <DButtonGroup> at /Users/hisk/Projects/GitHub/shards-vue/src/components/button-group/ButtonGroup.vue
and my code was:
<d-button-group>
<d-button>Left</d-button>
<d-button>Middle</d-button>
<d-button>Right</d-button>
</d-button-group>
<d-button-group>
this component, and with SSR
mode in Nuxt.js.Thanks.
When you use a <d-slider :v-model="test">
component to alter a data() variable test
, test takes on the value of the slider of type Number
.
Even if variable test is a Number
before, after slider updates will convert it into a String
.
Just bind d-slider to any variable, bug is very consistent.
I am using d-slider components to test if my system is updating correctly (during development). Currently I have to parseFloat all my variables that I want to change, which is fairly tedious.
Use parseFloat
on the value that is emitted perhaps?
I add shards-vue in my project with larvel backend and vuejs frontend. When I start building app, evrything fine and webpack is fine, and build is successfully run! But...
When I open page this is error in my app
vue.common.dev.js:630 [Vue warn]: The .native modifier for v-on is only valid on components but it was used on .
found in
---> at /Users/hisk/Projects/GitHub/shards-vue/src/components/link/Link.vue
at /Users/hisk/Projects/GitHub/shards-vue/src/components/nav/NavItem.vue
at /Users/hisk/Projects/GitHub/shards-vue/src/components/navbar/NavbarNav.vue
at /Users/hisk/Projects/GitHub/shards-vue/src/components/collapse/Collapse.vue
at /Users/hisk/Projects/GitHub/shards-vue/src/components/navbar/Navbar.vue
at resources/js/layouts/front/header.vue
at resources/js/layouts/front-page.vue
Please help.
Clicking a should fire a clicked event
Clicking a d-dropdown-item does not fire a clicked event
vue-cli webpack shards-test
d-dropdown-item
s and @click
d-dropdown-item
I need a dropdown where each item fires a different function or the same function with different arguments
Not sure if it helps, but using (from bootstrap-vue) instead works properly.
Hi
i am trying to make accordion dynamic and i am binding the id like this
<d-btn block-level size="small" theme="secondary" href="#" v-b-toggle="'accordion'+index" >Accordion 1</d-btn>
But its not working any idea what i am doing wrong
$ vue serve sandbox/Sandbox.vue
(node:10408) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'version' of undefined
at module.exports (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\@vue\cli-plugin-eslint\index.js:18:29)
at plugins.forEach (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\@vue\cli-service\lib\Service.js:79:7)
at Array.forEach (<anonymous>)
at Service.init (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\@vue\cli-service\lib\Service.js:78:18)
at Service.run (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\@vue\cli-service\lib\Service.js:204:10)
at Object.exports.serve (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli-service-global\index.js:54:33)
at Command.program.command.description.option.option.action (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli\bin\vue.js:102:53)
at Command.listener (C:\Users\DELL\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\commander\index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
(node:10408) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Done in 0.57s.
npm i @vue/[email protected] -g
In this page https://designrevision.com/docs/shards-vue/components/collapse
there is a demo for the Collapse component showing a button with size="small"
. This returns an error: Invalid prop: custom validator check failed for prop "size"
In the Button Component the only allowed sizes are sm
and lg
as showing in button/Button.vue
component line 56-60:
size: { type: String, validator: v => ['sm', 'lg', null].includes(v), default: null },
I propose we change size="sm"
in https://designrevision.com/docs/shards-vue/components/collapse
first of all, thank you very much for this awesome ui kit!
the :to prop for d-nav-item and d-link should work like the same way router-link :to does.
how they should work
d-nav-item and d-link :to prop only accepts a string or an object with a path prop
i mainly use named routes in my apps so this would be awesome if it would work
According to the documentation, the only place where an icon is used is in the navigation and it was used this way:
<fa :icon="['fas', 'search']" />
however, when I do I get an error that the component fa
is not registered
There is no documentation on how to use icons nor an icon component.
Note: I have tried to use the <i/>
tag but it didn't work either.
described in first section
Implement the fa
component ?
First thanks for this awesome Kit, i love it !
I'm trying to get a date picker in french
By default, en is choosed. But if i put :language="fr" or :translation="fr", it doesn't work. I've found multiple translation in the vuejs-datepicker directory, but how import 'fr.js' ?
Im just calling the datepicker component
To be aligned as expected
Align issues
// fix
.alert-dismissible .close {
top: 0;
right: 0;
padding: .75rem 1.25rem 1.25rem;
transition: all .25s cubic-bezier(.27,.01,.38,1.06);
line-height: 1.2rem;
}
// Previous
.alert-dismissible .close {
top: 0;
right: 0;
padding: .75rem 1.25rem;
transition: all .25s cubic-bezier(.27,.01,.38,1.06);
}
Should Compile SCSS without issue
Incompatible units: 'px' and 'rem'.
SASS compiler error, regarding scss-shards-ui_variables.scss
It seems to happen when using operations like sum with valiables.
$popover-arrow-outer-width: $popover-arrow-width + 1px !default;
Shouldnt be all measument of pixels converted to rem, as bootstrap4 standards? (Im not css expert, just wondering)
Thank you
Is there any plan for vue 3 support?
npm audit
should pass
npm audit shows a vulnerability in 4.1.3:
bootstrap <3.4.1 || >=4.0.0 <4.3.1
Severity: moderate
Cross-Site Scripting - https://npmjs.com/advisories/891
No fix available
node_modules/shards-vue/node_modules/bootstrap
shards-ui 2.0.0 - 2.1.2
Depends on vulnerable versions of bootstrap
node_modules/shards-vue/node_modules/shards-ui
shards-vue *
Depends on vulnerable versions of shards-ui
node_modules/shards-vue
Upgrade bootstrap to >= 4.3.1
Upgrade shards-ui >= 3.0.0
The d-nav-item
with an :exact
prop should not have an active class when it is not the current active route
Even after applying the active
prop to a d-nav-item
, an active class is always applied to it as long as the current path is preceeded by the path of the d-nav-item
with the exact
prop.
<d-collapse is-nav id="nav-collapse" class="justify-content-md-center">
<d-navbar-nav>
<d-nav-item to="/" exact>Home</d-nav-item>
<d-nav-item to="/portfolio">Portfolio</d-nav-item>
<d-nav-item to="/stocks">Stocks</d-nav-item>
<d-nav-item to="">End Day</d-nav-item>
<d-dropdown text="Save & Load" is-nav>
<d-dropdown-item>Action</d-dropdown-item>
<d-dropdown-item>Another action</d-dropdown-item>
<d-dropdown-item>Something else here</d-dropdown-item>
<d-dropdown-divider />
<d-dropdown-item>Separated link</d-dropdown-item>
</d-dropdown>
</d-navbar-nav>
</d-collapse>
export default new Router({
linkActiveClass: 'active',
linkExactActiveClass: 'exact-active',
// more router options
})
Result
I used shards-vue in universal
mode of nuxt.js. The universal mode executes ssr.
It did not work at all with the error document is not defined
. But, it worked when I changed to spa
mode.
I cannot execute SSR or generate in nuxt.js.
I think it probably contains functions that cannot be executed in SSR.
So when I set the plugin mode in nuxt.config.js to client, it worked fine.
nuxt.config.js
plugins: [{src:'~/plugins/shardsVue', mode: 'client'}
],
I think nuxt.js is one of the most popular frameworks and would you please add this to the documentation if you like?
😃
btw, nice work!!
Inputs don't trigger event modifiers
Usual input triggers event modifiers but d-input doesn't
<d-input
v-model="myData"
v-on:keydown="keydownMethod"
/>
First of all, thanks for your UI
In documentation said, that d-textarea has property :max-rows for auto change textarea height.
https://designrevision.com/docs/shards-vue/components/form-textarea
In code of d-textarea component nothing about this prop :( Of course, it`s not working
https://github.com/DesignRevision/shards-vue/blob/master/src/components/form-textarea/FormTextarea.vue
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.