Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 22:22
    visualfanatic edited #9403
  • Jan 31 2019 22:04
    visualfanatic opened #9403
  • Jan 31 2019 18:25

    yyx990803 on regression-test

    fix: allow more enumerated valu… chore: update sponsors [ci skip… fix: fix v-bind:style for camel… and 1 more (compare)

  • Jan 31 2019 17:29
    yyx990803 closed #9402
  • Jan 31 2019 17:20
    devedse opened #9402
  • Jan 31 2019 16:49
    Justineo closed #9401
  • Jan 31 2019 16:40
    Giwayume opened #9401
  • Jan 31 2019 15:24
    yyx990803 closed #9396
  • Jan 31 2019 15:24

    yyx990803 on dev

    fix: fix child forceUpdate regr… (compare)

  • Jan 31 2019 15:08
    yyx990803 closed #9382
  • Jan 31 2019 15:08

    yyx990803 on dev

    fix: fix v-bind:style for camel… (compare)

  • Jan 31 2019 15:08
    yyx990803 closed #9386
  • Jan 31 2019 15:04

    yyx990803 on dev

    chore: update sponsors [ci skip… (compare)

  • Jan 31 2019 15:04

    yyx990803 on patreon-update-1548947041032

    (compare)

  • Jan 31 2019 15:04
    yyx990803 closed #9400
  • Jan 31 2019 15:04

    vue-bot on patreon-update-1548947041032

    chore: update sponsors [ci skip] (compare)

  • Jan 31 2019 15:04
    vue-bot opened #9400
  • Jan 31 2019 14:59

    yyx990803 on patreon-update-1548924868622

    (compare)

  • Jan 31 2019 14:58
    yyx990803 closed #9393
  • Jan 31 2019 14:56

    yyx990803 on dev

    fix: allow more enumerated valu… (compare)

Norman
@nkoehring
It is neither fast nor clean
Mark Brown
@markwbrown
Z
@sdrkyj
v-html ? maby you can use the dynamic generated html content as part of a component, then reference it.
or, just fill the data of ajax data
in some network, Discord is unable to access. Then the users have to use some other techs to achive that. and Discord does not provide better proxy options , which has been required for years...
Nazar
@IsaakNazar
hey guys, I'm new in the Vue world
do you guys usually split style, template and component into separate files, or what is the best way to organize a component?
I came from Angular
Z
@sdrkyj
I do not know much either. But the Vue official site talks about the seperation thing.
Z
@sdrkyj
the style and js part of a component, could be split into standalone files. It's said the styles files would be cached, and loading faster ... not sure about the original text
Norman
@nkoehring
@IsaakNazar Personally I prefer to keep SFCs (Single File Components) together and I think that you can do that is a big strength of Vue.
I usually keep the styling to a necessary minimum though and try to keep as much shared styling as possible inside a main style sheet or where it makes sense.
Z
@sdrkyj
agree
matrixbot
@matrixbot
@ryan:ryankes.eu Hey, quick question. Is there any way to put multiple exports in a single vue file?
@ryan:ryankes.eu If not, how do you properly unit test forms? I want form error messages themselves in an enum so I can check for the enum string in tests
@ryan:ryankes.eu Seems a waste to put messages only used in a single component in a seperate file to be included
Florian Krämer
@burzum
How can I mutate props in a component using vue3? I'm passing an array to a child component and want to add objects to it. $set() is no longer available?
Norman
@nkoehring
@matrixbot @ryan:ryankes.eu No, that is not how Javascript works. There is the possibility of different blocks though and maybe someone implemented a <script test> block. I didn't see that yet though. If you just want to access data inside a component, you can do so with vm.$data
matrixbot
@matrixbot
@ryan:ryankes.eu You can usually export multiple objects. I fixed it though by adding the same enum to d.ts.
@ryan:ryankes.eu I haven't figured the out how to add an enum to data() yet
@ryan:ryankes.eu That's the only way to properly unit test as far as I can see. Otherwise every time you change a string value in a component you have to change it in the test as well
Norman
@nkoehring
Enums usually disappear after Typescript gets compiled. You can use string enums but that only replaces the keys you used.
I had that same problem and it sucks a lot if you ask me. Enums are just too useful and there should just be a way to get them converted to maps or frozen objects
matrixbot
@matrixbot
@ryan:ryankes.eu Preaching to the choir
@ryan:ryankes.eu Thanks for the input
s952787097
@s952787097

Hey all, :wave:
I'm using Webpack 4
The values of devserver in my configuration file are as follows:

devServer: {
        host: locatIp,
        port: config.server.port,
        contentBase: path.join(__dirname, '../dist'),
        hot: true,
        historyApiFallback: true,
        overlay: true,
        stats: "errors-only",
        proxy: config.proxy
},

When I run with webpack dev server, I assume that the port is occupied. This is webpack dev server, indicating that the port is occupied, but the process does not exit

Errors:

PS D:\MyPros\Frameworks\Base_U> yarn dev
yarn run v1.22.4
$ cross-env NODE_ENV=development webpack-dev-server --hot --config base/webpack.dev.js

您现在处于【开发】环境

× 「wds」:  Error: listen EACCES: permission denied 192.168.137.1:80        
    at Server.setupListenHandle [as _listen2] (net.js:1292:21)
    at listenInCluster (net.js:1357:12)
    at doListen (net.js:1496:7)
    at processTicksAndRejections (internal/process/task_queues.js:85:21) {
  code: 'EACCES',
  errno: 'EACCES',
  syscall: 'listen',
  address: '192.168.137.1',
  port: 80
}
i 「wdm」: Compiled successfully.

webpack version:

 "webpack": "^4.43.0",
 "webpack-bundle-analyzer": "^3.8.0",
 "webpack-cli": "^3.3.11",
 "webpack-dev-server": "^3.11.0",
 "webpack-merge": "^4.2.2"
Norman
@nkoehring
You cannot simply use ports smaller than 1000 without root rights. If you need a dev server to run, use port numbers above that.
(Might be 1024 or something)
@s952787097
matrixbot
@matrixbot
@ryan:ryankes.eu 1024. There's no sane reason to. If you want your app accessable on port 80/443 use nginx or better yet, Traefik. Traefik will handle SSL certificates automatically for you
palistha prajapati
@palistha01_gitlab
hello
image.png
image.png
I have multiple selectbox using vuetify
When I select ward number 1 and 2
  1. 0: "1"
palistha prajapati
@palistha01_gitlab
  1. 1: "2"
how can i convert it to ward 1= true ,ward 2 = true after clicking save button?
Mahbub Rabbani
@mrabbani
var t="df 2"
var isTrue = !! t //true
palistha prajapati
@palistha01_gitlab
I'm want like this
[ {1: true},{2: true}]
Andre Luiz Abdalla Silveira
@andre_prog_gitlab
I'm not sure using numbers as key is a good thing
wouldn't it be better if was something like this
[
  { "key1": 1, "key2": true },
  { "key1": 2, "key2": false }
]
palistha prajapati
@palistha01_gitlab
how can i make like this
JingXiang
@feidao158
just code...
copy and paste hhh...
fengjin123456
@fengjin123456
hello
Steven Lee
@AlexLee-webdev
Hello, everyone
Norman
@nkoehring
Hi
Florian Krämer
@burzum
Any idea what I'm doing wrong? I can't get the child component to even modify the passed props. It's not even updating the properties of the passed object in it's own scope. https://forum.vuejs.org/t/reactivity-modifying-array-items-in-child-components-vue3/105759