text:
feat(config): allow percentage value for workers option

Description
I can't use maxWorkers option that jest supported after migrating to vitest.
So I modified it so that the percentage value can be used in maxworkers and minworkers.
https://github.com/jestjs/jest/issues/9012#issue-503013549
Although it is a feature request in jest, I would like to get the same feature in viteest.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
[x] Ideally, include a test that fails without this PR but passes with it.
[x] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

[x] Run the tests with pnpm test:ci.

Documentation

[x] If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

[x] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

I want to add test for worker option but I found two problems.

Can't mock node:os inside bundled vitest/node
if get resolveConfig function from package/vitest/node/config.ts throw type error when running test

I don't think I can test the code properly if I can't mock node:os. Is it okay to test with cpus count without mocking?
Or is it okay to test only exception handling other than calculate logic?

I want to add test for worker option but I found two problems.

Can't mock node:os inside bundled vitest/node
If i import resolveConfig function from package/vitest/node/config.ts to test, throw type error from runtime.

I don't think I can test the code properly if I can't mock node:os. Is it okay to test with cpus count without mocking? Or is it okay to test only exception handling other than calculate logic?

You can create a separate utility that accepts the workers number and the amount of CPU and test that function.

I want to add test for worker option but I found two problems.

Can't mock node:os inside bundled vitest/node
If i import resolveConfig function from package/vitest/node/config.ts to test, throw type error from runtime.

I don't think I can test the code properly if I can't mock node:os. Is it okay to test with cpus count without mocking? Or is it okay to test only exception handling other than calculate logic?

You can create a separate utility that accepts the workers number and the amount of CPU and test that function.

Thanks for nice idea! I separate getWorkers function to utility and node:os mock is works. I added test now.

test failed.. because maybe i changed node:os import method. I fix test in a minutes.

LGTM! Thank you! 🎉

repo: vitest-dev/vitest


text:
w2grid.stateSave - save column ordering

http://w2ui.com/web/docs/w2grid.stateSave
It would be nice if w2grid.stateSave would also preserve column ordering when the user re-orders the columns.
Or maybe I'm doing it wrong?

I agree.

Actually, I figured out that stateSave does save the order while serializing the array, but stateRestore does not apply the order of the columns.

I have a fix prepared, that will restore the column order, still waiting until my other pull request is merged.

Merged all pull requests

Can be closed, implemented in w2ui 1.5, see  #1206

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
grid select row fron array

hello
I'm trying to select records from an array
but it does not work me
this is work
w2ui['gridmaterias_planacad'].select(0,1,2);
i`m usiing v 1.4.2
//my code
   w2ui['gridmaterias_planacad'].on('load', function(target, eventData)
      	{
      		eventData.onComplete = function()
      		{
   	    	//resultado
   		    var resultado = jQuery.parseJSON(eventData.xhr.responseText);

   		    //preguntar si hay algo que seleccionar
   		    if (resultado.preseleccionar.length > 0)
   		    {
   		    	//separar array en comas
   		    	var recid_seleccionar = resultado.preseleccionar.join();
   		    	console.log(recid_seleccionar);

   		    	w2ui['gridmaterias_planacad'].select(recid_seleccionar);
   		    }
   		}
   	});

I hope you can help me
I welcome your comments

I think you're sending an string (which .select() isn't able to read)

a temporary solution that I do not like
´´´javascript
w2ui['gridmaterias_planacad'].on('load', function(target, eventData)
{
eventData.onComplete = function()
{
//resultado
var resultado = jQuery.parseJSON(eventData.xhr.responseText);
		    //preguntar si hay algo que seleccionar
		    if (resultado.preseleccionar.length > 0)
		    {
		    	//recorrer
		    	for (var i = 0; i < resultado.preseleccionar.length; i++)
		    	{
		    		w2ui['gridmaterias_planacad'].select(resultado.preseleccionar[i].recsel);
		    	}
		    }
		}
	});

Here is how to do it
grid.select.apply(grid, [1,2,3]);

Looks pretty for me :)

excellent work!!!!

authors: chalchis loxiw vitmalina


text:
Permit empty subdomain in TournamentId.

Tournaments on the main site can be referenced with just the path component.
I chose to represent this with an empty string, we could also add another enum variant, or switch the subdomain to Option if you prefer.

Thanks!

source: gharchive/pull-request

authors: jmgao vityafx

repo: vityafx/challonge-rs


text:
AMP: o que é, porquê e como implementar no seu site.

Achei interessante escrever um post sobre AMP. Vou colocar aqui alguns tópicos que me vem na cabeça.
O que é AMP?

É uma especificação do Google para exibição de resultados otimizados para dispositivos móveis;
Por otimizados entenda-se, mais leves;
Só funciona pro Google;
Possui um conjunto de componentes disponíveis;
É parecido com instant articles;

Porquê implementar?
@fabiolafaria pode ajudar aqui

Trazer mais acessos mobile para o site;
Ter um destaque maior logo no topo dos resultados;
Mais velocidade de carregamento do seu conteúdo;
Pode se tornar fator de rankeamento;

Como implementar amp?

Respeitando a documentação do Google;
Validando seu amp com #development=1 no final da url;
Plugin para validação no Chrome;
Só pode ter javascript do projeto amp em uma página amp;
Ainda assim você pode ter json-ld para marcar seu conteúdo;
Tenha uma imagem de destaque para amp;
Para wordpress já existe plugin para implementar;
Também existe plugin para jekyll;

Bônus: perguntas mais frequentes.

AMP só aparece para celulares?
Consigo usar google analytics com AMP?
Tenho uma SPA, consigo implementar?
Que sites utilizam AMP?

Esse post está pronto :D


text:
Add support for using Azure OpenAI API Endpoint

I would love to see the option to pass in specific API Endpoints so that we can leverage Azure OpenAI API along with other implementations.

Would you be able and willing to test such implementation? Do you have a summary of important differences from OpenAI API on hand?

More than willing and happy to help. I'm not a developer, but have been going down the path of building out a functional solution for using ChatGPT3.5 with my own data pulled from Azure Blob Storage. As a full disclosure I work for MSFT as an Azure CSA, so that is the reason I'm looking at this solution vs native OpenAI API.
The biggest changes will be the URL API Endpoint which is variable based on the Azure OpenAI deployment along with the following:
"CHATGPT_MODEL":"{{model-deployment-name}}", <-- Pulled from the Azure Portal and a user created string
"OPENAI_API_BASE":"https://{{openai-deployment-name}}.openai.azure.com/", <-- Pulled from the portal and is the name of the Azure OpenAI deployment resource.
"OPENAI_API_VERSION":"2023-03-15-preview",
"OPENAI_API_TYPE": "azure",
I've gotten things working via Python, but I was using the OpenAI Libraries (via import openai):
def chatbot(openAIKey,configDetails,prompt):
    ## Collect values from Config File.
    chatgpt_model_name = configDetails['CHATGPT_MODEL']
    openai.api_type = configDetails['OPENAI_API_TYPE']
    openai.api_key = openAIKey
    openai.api_base = configDetails['OPENAI_API_BASE']
    openai.api_version = configDetails['OPENAI_API_VERSION']

    response = openai.ChatCompletion.create(
                    engine=chatgpt_model_name,
                    messages=[
                        {"role": "system", "content": "You are a helpful assistant."},
                        {"role": "user", "content": prompt}
                    ]
                )

    # Return the response
    return (response['choices'][0]['message']['content'])

I was thinking we could add some additional Game Settings to settings.js:

Allow adding a custom 'customEndpoingUrl' that can be any API Endpoint the user needs.

	game.settings.register(moduleName, 'endpointUrl', {
		name: 'ChatGPT Base URI',
		hint: 'You can either use the default OpenAI EndPoint or Azure OpenAI Endpoint.',
		scope: 'world',
		config: true,
		type: String,
		default: ''
	});

Remove the "selection" option from 'modelVersion' to allow a user entered string. Along with updating the hint with some better instructions.

game.settings.register(moduleName, 'modelVersion', {
		name: 'ChatGPT model version',
		hint: 'Version of the ChatGPT model to use. Free accounts do not have access to GPT-4. If you are using Azure OpenAI, use the Model Name from the API endpoint URL.',
		scope: 'world',
		config: true,
		type: String,
		default: ''
	});

Is there a reason you didn't use the built in OpenAI Libraries for javascript?

@BenTheCloudGuy could you comment (and maybe check) if the implementation like in #15 is sufficient?
Regarding the modelVersion — isn't there an endpoint that lists the available models (presumably, /v1/models)? Could you provide an example string you personally would use for this field (just so I have some idea of the potential differences)?

@BenTheCloudGuy could you comment (and maybe check) if the implementation like in #15 is sufficient?
Regarding the modelVersion — isn't there an endpoint that lists the available models (presumably, /v1/models)? Could you provide an example string you personally would use for this field (just so I have some idea of the potential differences)?

Sorry - work and life got crazy busy as I'm prepping everything for GenCon in about a month. I'll get this tested out asap and reply back.

authors: BenTheCloudGuy vizovitin

repo: vizovitin/foundryvtt-ask-chatgpt

license: MIT

license_source: github-api


text:
Image text output

Can you add an option to output the image in a text format
Supplementary options could include

What character to use for background and foreground
The aspect ratio of a character

Thanks

Do u mean kind of ASCII art? Like:
          ___
         (   )
  .---.   | |.-.     .--.
 / .-, \  | /   \   /    \
(__) ; |  |  .-. | |  .-. ;
  .'`  |  | |  | | |  |(___)
 / .'| |  | |  | | |  |
| /  | |  | |  | | |  | ___
; |  ; |  | '  | | |  '(   )
' `-'  |  ' `-' ;  '  `-' |
`.__.'_.   `.__.    `.__,'

Sorry, forgot to responsd. I meant a machine & human readable text based image format where filled pixels are a character and empty pixels are spaces
   ▄████████ ▀█████████▄   ▄████████      ████████▄     ▄████████    ▄████████
  ███    ███   ███    ███ ███    ███      ███   ▀███   ███    ███   ███    ███
  ███    ███   ███    ███ ███    █▀       ███    ███   ███    █▀    ███    █▀
  ███    ███  ▄███▄▄▄██▀  ███             ███    ███  ▄███▄▄▄      ▄███▄▄▄
▀███████████ ▀▀███▀▀▀██▄  ███             ███    ███ ▀▀███▀▀▀     ▀▀███▀▀▀
  ███    ███   ███    ██▄ ███    █▄       ███    ███   ███    █▄    ███
  ███    ███   ███    ███ ███    ███      ███   ▄███   ███    ███   ███
  ███    █▀  ▄█████████▀  ████████▀       ████████▀    ██████████   ███

authors: SollyBunny vladimirgamalyan

repo: vladimirgamalyan/fontbm


text:
TypeError: Human is not a constructor

Hi, I am getting the following error
Uncaught TypeError: Human is not a constructor
here  is my code
<script id="humanScript" crossorigin="anonymous" ></script>

<script type="module">
  console.log('here')
  const humanScript = document.getElementById('humanScript')
  console.log('---', humanScript.id)
  humanScript.onload = () => {
    console.log('onload')
    window.Human = Human
    // window.Human = Human.constructor
    // window.Human = Human.constructor
   // console.log(Human.constructor);

    const config = {backend: 'webgl'}
    const human = new Human(config)
  }

  humanScript.onerror = (error) => {
    console.log('onerror', error)
  }

  const src1 = 'https://cdn.jsdelivr.net/npm/@vladmandic/human/dist/human.js'
  const src2 = 'https://unpkg.dev/@vladmandic/human/dist/human.js'
  const src3 = 'https://cdnjs.cloudflare.com/ajax/libs/human/3.0.0/human.js'

  humanScript.setAttribute('src', src2)
</script>

that is a very weird way to do script imports, but ok, that's your choice.
i think that you might end-up with double wrapped script, so you need to do const human = new Human.Human(config)

closing as no updates provided.

I had a similar issue and this resolved it for me, however I imported in the way suggested on the installation page with the IIFE script.
<!DOCTYPE html>
<script src="dist/human.js"></script>
<script>
const human = new Human();
</script>

Produces the Uncaught TypeError: Human is not a constructor
However,
<!DOCTYPE html>
<script src="dist/human.js"></script>
<script>
const human = new Human.Human();
</script>

works just fine. I'm still a JS noob so it's probably just a misunderstanding on my part, but just wondering.

Had the same issue. @tbreimer's fix fixed it for me too.
BTW video demo claims to be standalone, but it isn't - I'm still finding missing files and copying them over

authors: Zireael07 lijualivenow tbreimer vladmandic

repo: vladmandic/human


text:
chore: use .vv extension for meta- and testdata files

The files contain code that will encounter problems when running v fmt with some flags.
Updating the extension keeps them working while allowing to add a formatting verification to the projects CI workflows.
Thanks @spytheman. Ref.: https://github.com/vlang/v/pull/21057#issuecomment-2009172545

Can't reproduce the analyzer test failure locally 🤔

There is a conflict in embed.v, otherwise it LGTM.

authors: spytheman ttytm

repo: vlang/v-analyzer


text:
upgrade to latest sembench

introduces new signature call
and suggests new environment variables
fixes #33

tested on laptop of @laurianvm - seems to work

repo: vliz-be-opsci/k-gap


text:
added testing and pyrdfstore

This PR adds the following:

Adds Makefile with single testing and graphdb testing capabilities
yml .github workflow fro PR testing
submodule folder layout
the original code and testing from py-rdf-store with some small refactoring on where the variables come from

Issues tackled in this PR:

#37
#43
#38
#40
#41
#48
#10

also slightly worrying that the automated tests seem to be failing
best to make sure that gets resolved too (strangely my own experience is that tests seem to run nicely locally)
also: the requested split / reposition of the **clean stuff should be accompanied by a reposition of the matching tests I guess

@cedricdcc
found some time today to give a hint about that reorganiszation of the cleaning code
see https://github.com/vliz-be-opsci/py-sema/tree/fix/commons-clean
possibly useful to merge into this branch / PR

automated tests still failing -- any clue about the why?

automated tests still failing -- any clue about the why?

It has something todo with the coverage tests from @JotaFan.
Installing collected packages: coverage, coverage-badge
Successfully installed coverage-7.5.4 coverage-badge-1.1.1
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.4/x64/bin/coverage-badge", line 5, in
from coverage_badge.main import main
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/coverage_badge/main.py", line 7, in
import pkg_resources

authors: cedricdcc marc-portier

repo: vliz-be-opsci/py-sema


text:
[Kernel] change benchmark script so that result can be directly used; tune moe kernel in A100/H100 with tp=2,4,8

cc @WoosukKwon

Thanks for the refactorings! While you are touching this code, one thing that would be wonderful to do is to keep track of the timings for the best configuration. This could e.g. be done by writing them to a separate file. This would allow you to decide if a new configuration is better than the old one.
Also note that running the script as-is will likely not produce optimal results in some settings, since there is a bunch of parameter pruning going on at the moment (e.g. for the batch size). Sometimes it is important to look at the values found and then expand the search space if it runs into the boundaries :)

@pcmoritz  This manual kernel tuning is kind of temporary. Going forward, we plan to use triton.autotune to automatically tune these configs. So we don't need to invest too much time here.

@pcmoritz This manual kernel tuning is kind of temporary. Going forward, we plan to use triton.autotune to automatically tune these configs. So we don't need to invest too much time here.

In my experience triton.autotune is far too slow to be useful (unless the configs have already been run / are cached) :)

command: python benchmarks/benchmark_throughput.py --model=mistralai/Mixtral-8x7B-Instruct-v0.1 --input-len 1000 --output-len 50 -tp 2
H100 GPU:

benchmark
no config
w/o this PR
w/ PR

tp=2
11.73 requests/s, 12313.00 tokens/s
14.11 requests/s, 14816.20 tokens/s
15.69 requests/s, 16477.71 tokens/s

tp=4
18.07 requests/s, 18974.30 tokens/s
same as no config
22.06 requests/s, 23166.51 tokens/s

tp=8
24.80 requests/s, 26039.89 tokens/s
same as no config
28.17 requests/s, 29577.75 tokens/s

A100 GPU: TODO (don't have 8*A100 GPU at hand now)
@WoosukKwon benchmarking results are quite promising!

In my experience triton.autotune is far too slow to be useful (unless the configs have already been run / are cached) :)

Will definitely try to cache tuned configs!

@youkaichao Awesome! Could you 1) update the PR with the current main and 2) fix the lint error by running ./format.sh? You will have to run pip install -r requirements-dev.txt before it.

@WoosukKwon lint is good now 👌

authors: WoosukKwon pcmoritz youkaichao

repo: vllm-project/vllm


text:
Unable to encode in OER format

Hi,
I am trying to encode a 1609.2 based certificate in OER format.
I have compiled the asn file using command : asn1c -Wdebug-compiler -fcompound-names -findirect-choice -pdu=all std1609dot2.asn
I am compiling the main file with command: cc -o rencode -DPDU=CertificateBase -DASN_EMIT_DEBUG=1  -Iskeleton_security skeleton_security/*.c main.c
At run time the error displayed at console is:
OER encoder invoked for (null)
Segmentation fault (core dumped)
I am new to this. Can anyone help?

Hi @vashishthadeexa,

OER encoder invoked for (null)

Most probably you are calling oer_encode with an incorrect type descriptor as it prints (null) instead of the type's name.
https://github.com/vlm/asn1c/blob/fdb68ce2782423ce38caf84f28441d1b0776e9ee/skeletons/oer_encoder.c#L12-L14

Yes. Solved. Thanks.

authors: vashishthadeexa velichkov


text:
Loader: use isset instead of strpbrk

Supercedes #220:
strpbrk() is a rarely used function that behaves like strstr() and returns a substring on success. Given that we are only checking a single character for specific values, isset() (a language construct that does not incur standard function overhead) is more suitable for performance and legibility.

Thanks. 👍

authors: GrahamCampbell jrchamp

repo: vlucas/phpdotenv


text:
Added spanish translation

Hi, I'm making a video about the integration (thank you very much for all the work btw), and I wanted to contribute so it can reach more people who might need it.

@fixtse Hi!
Thank you so much for the translation! I am sure that the Spanish-speaking users of the component will also be grateful to you :)
I'm glad to hear that you are creating a video about this integration, it's nice.
If you or your subscribers have any feedback on the usability of the integration or its functionality, I will be glad to receive it, otherwise the ideas for improvement have somewhat dried up

Hey, sadly I had some problems with my unit and ended up sending it back. Still, I did notice something, if the home assistant server is connected to the primary router, everything works as expected, but if it is connected to one of the nodes, it gets messed up and only detects one router. Not sure if there is something you can do about it, but a note in the documentation would be appreciated. 🙌 thanks again.

Hi!
It's a pity that it happened with your unit. I hope that the refund will happen without any problems.
I have added a troubleshooting section to the documentation, I will try to replenish it with frequently encountered cases

authors: fixtse vmakeev


text:
Can't run example

Greetings,
I'm trying to get this tool working for a research project. I'm trying to run the following example from the README:
$ make yss
$ ./prepr_faults test_files/examples/Arbiter/code_hdl_models_arbiter.v
$ ./verif_tool test_files/examples/Arbiter/code_hdl_models_arbiter.v inputs/arbiter.md faults/config_faults_arbiter.md

If I follow it literally, I get this output. If I instead run make all instead of make yss, I get this other output. In both cases, I ran make clean prior to executing the commands, to make sure I was starting from a clean state. What am I getting wrong?
Thank you for your help,
GTP95

Discussion moved back to issue #1

repo: vmarribas/VerMFi


text:
Have educates admin platform delete, delete portal, environment and session resources.

Is your feature request related to a problem? Please describe.
Main docs recommend when deleting training platform that first delete any training portals, workshop environments and sessions etc. This is not done when running the educates admin platform delete command. Technically this could result in deleting of training platform being blocked if operators were deleted before workshop environments could be cleaned up.
Describe the solution you'd like
Have educates admin platform delete command first delete at least training portals, waiting for them to delete in foreground. Then possibly also delete workshop environments and sessions in same way. The latter wouldn't be required if training portals always used, but still good thing to do.
Describe alternatives you've considered
No response
Additional information
No response

This command will go away with the new installer

The commands may go away, but the original problem will still be an issue. That is if delete operators before deleting training portals etc, deletion could hang.

authors: GrahamDumpleton jorgemoralespou


text:
Provide a way for kapp-controller to not take ownership of existing resources

[Describe the problem/challenge you have
When deploying a package, if there's a resource defined in the package contents that already exist in the cluster, kapp will take ownership of this resource. From that moment, if the package is removed, then the existing resource will be removed as well.
Describe the solution you'd like
I would want to have an annotation on the package that defines whether existing resources should be absorbed as owned or not, so that if the annotation is present and the resource exists, kapp-controller reconciliation will fail indicating that the resource already exists and that can not be claimed as owned by the package. This will prevent taking incorrectly ownership of existing namespaces, and similar problems.
Anything else you would like to add:
This is a conversation that unveiled this problem: https://kubernetes.slack.com/archives/C02GY94A8KT/p1645018465370589

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Hmm, maybe this should be
deploy: {kapp: {adopt-resources: false}}

?
I think this requires a feature to be implemented in https://github.com/vmware-tanzu/carvel-kapp as well

kapp won't stomp an existing ownership,  so if you have a configmap foo and you also have a package that will install that same configmap, but you don't want to change the ownership,  you could block the whole thing by setting the label kapp.k14s.io/app: "my-ownership" .  Current behavior is that then the package would fail to reconcile.  Could this be solved by a "rebase rule" style ownership decoration that would say "copy the ownership from the existing record" ?
Also, seems like this would go with PackageInstall rather than the package itself, and there's some challenges around knowledge of the resources - it seems odd to me that you would already have the exact resource that a package is creating. Can you detail a specific case?

Use case is that we have seen that most of the Packages define a namespace and that the namespace is configurable. There's a big problem when a user in a non malicious way sets that namespace to an existing namespace (e.g. kube-system). From that moment, as kube-system did already exist as it came with the k8s cluster, the package owns the namespace. If that package is then removed, kube-system namespace will also be removed, and with it, everything contained in that namespace, leaving the cluster in a non-recoverable state. There needs to be a way to prevent packages from "claiming ownership" of existing resources (namespaces being the most critical).
And I don't think this should be at the PackageInstall level, as PackageInstall are user provided resources, and we shouldn't need to leave this up to the end user, but rather to the Package author or cluster manager.

thanks @jorgemoralespou -  the example you give does sound pretty inconvenient 😆 .  I just want to make sure I understand though -  if the namespace is configurable, who is the person who chooses that config value?  Isn't that also the right person to know whether it should be uninstalled along with everything else?

I don't think end users understand what packages do internally, they only understand what values can be provided, and sadly, there's nowhere in any package that I have seen any warning saying "don't use an existing namespace" or it will be removed if the package is removed, and my experience with packages is quite extensive :-D

authors: benmoss joe-kimmel-vmw jorgemoralespou

repo: vmware-tanzu/carvel-kapp-controller


text:
kapp delete change should precondition on uid when waiting for resource to be gone

Describe the problem/challenge you have
currently kapp when waiting for resource to be fully deleted off cluster, ignores that resource might have changed its uid. when uid changes it implies that resource has been deleted, and replaced by a different resource with a same name.
Describe the solution you'd like
we should probably check on uid difference and see that if resource uid changed, then consider it as deleted. there is a nuance in this change though, we should probably continue waiting for the resource to be gone if uid changed, but resource still matches criteria for being within the app (currently happens today).
Anything else you would like to add:
this came up during following steps:

with kapp-controller 0.20.0-rc.1
add pkg repo to a default ns
add pkg repo to global packaging ns
delete pkg repo from a default ns (this hangs for default wait timeout) because deleted package was replaced by package that is derived from global ns

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

This seems like a reasonable change or at least something to explore further. I'm going to move this to carvel accepted so that we can further discuss if/when to prioritize this.

release v0.40.0

authors: aaronshurley cppforlife renuy

repo: vmware-tanzu/carvel-kapp


text:
Add apko as a Builder

Describe the problem/challenge you have
apko provides fast, reproducible OCI image builds.
It's a tool from https://www.chainguard.dev/ — some of the same folks that started Sigstore.
Describe the solution you'd like
Write a builder for apko so that Carvel users can enjoy the benefits of apko.
Anything else you would like to add:
The source of apko-produced OCI images are Alpine packages (APKs). The same group provides a tool to produce APKs: https://github.com/chainguard-dev/melange

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Saw this "advertised".  Created this issue to make it easy for our users to let us know they want/are using apko.

Reopening this issue but will label as awaiting more evidence

authors: aaronshurley pivotaljohn

repo: vmware-tanzu/carvel-kbld


text:
Option to create multiple keys in Secrets

Describe the problem/challenge you have
When multiple keys are defined in a Password object, the generated secrets are the same across all keys.
Here is an example:
---
apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
  name: postgresql-password
spec:
  secretTemplate:
    type: Opaque
    stringData:
      postgresql-password: $(value)
      postgresql-postgres-password: $(value)
      repmgr-password: $(value)

What is currently generated:
apiVersion: v1
data:
  postgresql-password: ZDJ1cjJiZm1keHFpb2F3cnNtZGYxMHN0YTl0Z2J1anB0cWx3aGdjbA==
  postgresql-postgres-password: ZDJ1cjJiZm1keHFpb2F3cnNtZGYxMHN0YTl0Z2J1anB0cWx3aGdjbA==
  repmgr-password: ZDJ1cjJiZm1keHFpb2F3cnNtZGYxMHN0YTl0Z2J1anB0cWx3aGdjbA==
kind: Secret
  name: postgresql-password
type: Opaque

Describe the solution you'd like
It would be fantastic, if each key in the secret would get a unique password.
Anything else you would like to add:
N/A
Thank you for your hard work!

@erkerb4 that becomes becomes of an issue for generating multiple passwords and combining them into a single secret (via a template). we've considered adding something like SecretTemplate CR (or something similar) which would be able to aggregate contents of one or more secrets Secrets and produce a new one, but have not fully committed to that approach yet.

Will be eagerly awaiting that implementation. Thank you for your response.


text:
Determine Dark mode UI via prefers-color-scheme

Feature Request
As a user,
I would like to automatically be presented Dark mode UI in the browser if my OS is set to dark mode.
So I do not temporarily blind myself when opening the bootstrap UI 😄
Describe alternatives you've considered
Quickly click on the Dark mode button; very hard to do when you're temporarily blind 😄

@stmcginnis yes please

authors: frapposelli miclettej

repo: vmware-tanzu/community-edition


text:
Building container images from source

How do we drive a container build from source control to a registry? Provide guidance on how a user may easily implement a CI task to build a container on Github, Gitlab, or other with tools like Dockerfiles, Cloud Native Build packs, or other.

@craigtracey is this in flight or should it be moved back to the "To Do" column of the backlog?

authors: craigtracey joemoore

repo: vmware-tanzu/tanzu-dev-portal


text:
Support just 1 TAS connection at a time

Here are some reasons in favor of this initiative:

The extension currently displays an explanatory error message when the login button is clicked while already logged in (a poor user experience).
The team decision is that users of this extension are unlikely to want to see multiple TAS connections in the TasExplorer at once.
The code is still still structured to support multiple TAS connections under the hood,; this functionality will never be used as long as the user is unable to log in more than once. Converting completely to a single-connection architecture would simplify many areas of code (e.g. obviate the need to iterate over TAS connections / check whether there is more than 1)

Ran into an unforeseen complication with this refactor: xaml TreeViews use an IEnumerable as the ItemsSource, meaning our tree view in the TasExplorer can't bind to a single root node (i.e. our new one-and-only TAS connection).
Here are some possible solutions:

continue to bind our tree view to a collection of TAS instances, but only ever add 1 item (this is what we were trying to do before this issue)
rework the TasExplorer to display the "top-level" differently & use the single CfInstanceViewModel's children (OrgViewModels) as the ItemsSource for the tree view.


text:
Resizing columns in datagrid causes other columns to change sizes as well

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior

When I resize one column, other columns should not change their size.
Actual behavior

Given a data grid whose columns were sized to a specific content. When that content changes and one column is resized by the user, the other columns are adjusted to the new content:

Reproduction of behavior

Create a data grid with some initial content
Update that content such that column sizes do not fit anymore
Resize one column
Observe that other columns are resized as well

Plunkr: https://plnkr.co/cKRZCyXzkwlhOea3YHuK
Instructions:

Press "Set Content" and observe that the new text is clipped because it does not fit anymore.
Resize a single column.
Observe that the other columns are stretched to fit the content.

Environment details

Clarity version: 0.9
Browser: all

@oliverhanappi
Thanks for the plunkr. It was very helpful. It appears that this only occurs after the content has been replaced and only with columns that have not already been resized. For example, if I...

Open the plunkr
Resize the second column (while it only has the "s" in it)
Then click "Set Content"
Then resize the first column

...the second column is not resized.
However, if I follow your steps, the datagrid resizes all columns but only after I use "Set Content".
If I keep the original content ("s") in the cells, the datagrid does not exhibit this behavior.
I'm pinging @youdz to get an understanding of if this is an intended behavior and, if so, why...

@oliverhanappi thanks again for the plunkr.
So currently, If a column gets resized and gets a fixed width, other columns dynamically resize themselves to compensate the difference. But, at the same time, those other columns still take their cell contents into account as long as they are flexible-width columns. That's why in your plunkr, those columns respond to not only the size change of the resized column width but also their cell content changes.  So the solution could be that columns should no longer take their cell contents into account when they need to resize themselves to compensate the resized column.

@youdz

Actually, I believe the recommended pattern when you have such a huge change of cell content is either to:

manually trigger a column resize when the "large" data comes in. You can do this by accessing the datagrid with @ViewChild, and then calling its .resize() method.
Put a width in the CSS for the columns that drastically change sizes, that makes sense for the data you are trying to display. We will respect that width at all times.

Our column sizing assumes reasonably homogenous data for a given column. It's needed to try and give you smart columns width without knowing the semantic of the columns, otherwise we cannot possibly guess that a column that currently has 10 items with a 1-character text in them will grow to a full 500px wide non-breakable text. Also note that said 500px on non-breakable text is heavily against our recommendations, and we will not support it more than gracefully fallback to long horizontal scrolling (which is frustrating UX).

@youdz Thanks for your input. Can you give an example on how to specify the widths of individual columns?
Is there a way to specify the widths relative to each other (e.g., multiples) such that all columns consume the whole available space? E.g., I want the first column to get 25% of total width, the second 50% and the last one another 25%.

Any updates on this?

authors: Shijir amalo95 mathisscott oliverhanappi youdz

repo: vmware/clarity


text:
Visual discrepancy - Header text in Sketch Template and Build

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

The following tasks will be needed:

Determine the desired visual style for the Header text
Update Sketch/Invision files –or– code accordingly

Expected behavior
The appearance & specifications for the text in the Screen Header should be consistent between the Sketch Template and the build.
Actual behavior
The color, font-weight, and font-size in the Sketch Template are different from what is implemented in the Clarity build.
Reproduction of behavior
In the Build:      – use a devtool to "inspect" the element.
In the Sketch file:  –    select the text string to see its specs
See also the attached images and bulletted lists below.
Example 1 – .nav-text in its Normal state ...includes inherited values from .nav-link
font-weight

sketch:  400  (Metropolis Regular)
build:  500

color

sketch:  #fff
build:  #fafafa

opacity

sketch:  100%
build:  65%
<>

Example 2 – .title in its Normal state
font-size

sketch:  17px
build:  16px

Environment details

Angular version: 2.0.X

Clarity version:  0.8.0

OS and version:  All

Browser: all

I believe this is a known issue and @reddolan will be updating in the next version of the Sketch UI template. The header font styles should match the latest file in Invision. @reddolan Can you confirm?

All of these updates will be in the next release of the UI Template

update coming in #325 for 0.8.2 next week

authors: EileenLB reddolan yenmade


text:
Cannot change datagrid header column order when no data in row

Describe the bug
When no data in datagrid row, cannot change column order, it works well when any data in row.
How to reproduce
https://stackblitz.com/edit/clarity-light-theme-v1-0-gfdtib
Steps to reproduce the behavior:

Click any 'angle bottom' icon button at the bottom
See the first datagrid header and columns order changed, but the second does not.

Expected behavior
Column or header order can be changed even if no data in datagrid row.
Versions
App

Angular: 7.2.0
Node: v10.15.1
Clarity: 1.0.4

Device:

Type: Mac
OS: macOS 10.14
Browser Chrome and Safari
Version Chrome version 73.0.3683.103, safari version 12.1

Hi @humphrycc, thanks for reporting this. We are currently working on a feature that will allow users to reorder columns through flex order instead of manipulating dom order of the columns.
But what you are reporting here is indeed bug. I remember this used to work fine before. And I did a quick repro in Clarity v0.13 and it's working here: https://stackblitz.com/edit/clarity-light-theme-v013-dynamic-columns?file=src/app/app.component.html.
So we will take a look into what was introduced into v1.0 that made it stop working.

This issue is about a version of Clarity that is out of support. In an effort to better manage our backlog, we are closing this issue. We recognize that some of these issues may remain problematic for you, but to help us to be able to prioritize it we ask for a new GitHub issue with an updated demo with a recent supported version of Clarity.

authors: Shijir gnomeontherun humphrycc


text:
Datagrid filter closing after input

Describe the bug
When i try to filter the datagrid(server-driven) somehow it works, and when it got null value, it closes the filter.
How to reproduce

and when it comes to more than 1 filter, it produces like this.

Expected behavior
I want the filter to not closes until the user closes themselves.
Versions
App

Angular: 7.2.15
Node: 10.15.3
Clarity: 1.1.3

Device:

Type: Lenovo ThinkPad & Lenovo Yoga
OS: Windows
Only Chrome
Version 74.0.3729.131

Additional notes
fyi: recently i added the css for datagrid (styles.scss):
clr-datagrid {
  max-height: fit-content;
}
.datagrid {
  max-height: fit-content;
}

and override column width for several column:
<clr-dg-column [style.width.px]="150">
  <ng-container *clrDgHideableColumn="{hidden: false}">
      Pemenang
   </ng-container>
</clr-dg-column>

but, the affected column doesnt use [style.width.px]="150"

In the issue template we ask for a minimal reproduction. There are starter stackblitzes with Clarity already integrated here: https://stackblitz.com/@clr-team. Please reproduce the described issue so we can look at the code.

do you have any example API that supports server-driven datagrid?

Every API is different and the datagrid can wirk with any API. Feel free to mock the backend. Whats important is that we see how the code for the datatgrid is implemented and can evaluate the issue from that isolation.
Here is a server driven stackblitz that mocks a back end. Feel free to fork it and simplify for your reproduction. Also, it seems like you haven't seen the documentation on server driven datagrids? https://clarity.design/documentation/datagrid/server-driven

Closing as stale, and likely fixed from addressing #2923.

authors: fahrulalwan gnomeontherun hippee-lee


text:
Separators in button group overflow menu

Summary
Button group overflow menus should have the ability to have separators just like select dropdown components shown here: https://clarity.design/documentation/dropdowns

It will enable some use cases where we want to logically section off the overflow menu with related actions grouped together
It should be in Clarity because it makes the framework richer in terms of functionality
It won't affect any existing UIs or code
It can be made accessible in the same way that it's be done for the select component

Use case

Workarounds
The workaround is to not have a separator at all. It is not ideal, but TBH not a deal-breaker. This feature is the mayor of "just-nice-to-have" territory.

The feature request here has been captured into our list and we’re going to take it into consideration as we develop Clarity Core capabilities. In an effort to clean up our backlog and focus our attention, I’m going to close this as captured in our feature requests. Please follow our development and releases to see when we release relevant components to make this possible. Future feature requests can be made in our GitHub Discussions.

authors: gnomeontherun jrharshath


text:
How to add suffix in when using "clrInput" label?

Is there a way to add a suffix or prefix when using "clrInput"?
just like below:

@vmware.com

I tried to add a 'span' in , but it doesn't work!

This is a duplicate of https://github.com/vmware/clarity/issues/3778 which is being worked on currently.
Closing as duplicate.


text:
Distribute config file to ESXs via VC file browser

We should be able to upload config file (JSON one in each datastore plugin folder) in VC file browser . Also it needs to be added to tests automation.

@msterin Do you remember which config file you are referring here? We already implemented policy support in admin CLI. Should this be closed as "won'tfix"?

It is obsolete by now, we should close this

Sure. One more down!

authors: msterin pdhamdhere

repo: vmware/docker-volume-vsphere


text:
Change default log level to INFO in plugin

Change default log level for plugin from "debug" to "info".
Testing done: Manually confirmed in logs that only info log statements are logged.
Fixes #396

The fix is good- unfortunately it does break screen-scraping in misc/scripts/refcnt_test.sh, so it has to come together with test fix.

LGTM


text:
Refine the group management dialog

In add group dialog there should be more tips to inform user that the group name is optional, if it's left empty the gid will be used as group name.
Should refine the labels and messages to explicitly tell user the group is to be imported, in contrast to added.

I don't think we need a signpost to help the user understand that the name is optional. It should get filled in automatically when the Group DN is filled in. the only required field is designated by the red asterisk (*)

I will create a REST API to check the GroupDN is valid and retrieve its group name in LDAP. see
#5145

authors: lweitzman reasonerjt stonezdj

repo: vmware/harbor


text:
Legal Clearance for 1.6

Fixed in #5517


text:
tern --version returns 'fatal' error message if no local git repo found

Describe the bug
If you try to get the version of tern after a pip install with no tern git repo present, the tern --version output gives you a fatal error message. Without extensive debug, my haunch is that this issue can be traced to utils/general.py --> get_git_rev_or_version() which tries to do a git rev-parse HEAD to get the commit if available. However, if there's no git repository found, it will error wih the fatal message below.
To Reproduce
Steps to reproduce the behavior:

Create a new virtual environment and pip install tern:

# python3 -m venv test
# cd test
# source bin/activate
# pip install tern

Try to check which version of tern you are running:
tern --version

Error in terminal
(test) rjudge:tt$ tern --version
fatal: not a git repository (or any of the parent directories): .git
Tern version 0.4.0
   python version = 3.6.8 (default, Jan 14 2019, 11:02:34)

Expected behavior
It should not display 'fatal' error message if no git repository is found. It should only display the version (which it currently does correctly).
Environment you are running Tern on
Enter all that apply

tern version 0.5.4
Operating System: 18.04.3 LTS (Bionic Beaver) -- running on VMware Fusion
Python version = 3.6.8

Looks like this was fixed in https://github.com/vmware/tern/pull/425/

repo: vmware/tern


text:
job-builder: fix ci/cd steps

Why
The job builder steps failed due to the docker version - https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3666206273 .
What
Revert the docker version for the job builder steps.
Testing done
CI/CD

Why do we need older version? What is the difference between the new and the old?

Why do we need older version? What is the difference between the new and the old?

Just reverted the version in order to unblock the pipeline - more details here - https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/3666206273.

Why do we need older version? What is the difference between the new and the old?

I don't know what is the difference between the new and the old - @murphp15 do you know?

repo: vmware/versatile-data-kit


text:
策略疑问

环境

操作系统: 如Windows 7或者Ubuntu 16.04
Anaconda版本: 如Anaconda 4.0.0 Python 2.7 32位
vn.py版本: 如v1.7发行版或者dev branch 20170920（下载日期）

Issue类型
三选一：Bug/Enhancement/Question
预期程序行为
我想实盘交易股指，但是需要每天更新的数据是行业或成分股数据，需要在模板哪里怎么添加程序语句。。。
实际程序行为
重现步骤
针对Bug类型Issue，请提供具体重现步骤以及报错截图

看一下 tushare, 要求不高的话直接放到Strategy里面去就行

可以使用tushare获取数据，但我只能说实盘没人这么干的

authors: fangsidian vnpy wkpzwy

repo: vnpy/vnpy


text:
can decouple database from dataset building?

would it be easier to develop / easier for users if dataset building was very fast, and then we just created the database file from a very quickly built dataset?
i.e. with my almost nonexistent database knowledge my (wild, probably wrong) guess is that pain points will be around updating a database on the fly
I'm wondering if it would be easier to have a more "functional" approach where we can easily create datasets as in-memory databases, perform whatever workflow we want on that in-memory database (e.g. extract features, create spectrograms), and then instead of trying to update the in-memory database to add e.g. spectrogram files or feature files, as a side effect of running the pipeline, we instead leave it to user to create a new dataset from the spect / feature files

Yes, this is the approach we're taking, basically. Closing this as there's nothing left to address here

repo: vocalpy/vocalpy


text:
v2.0.2 Disappearing whitespace between  and

Given the following input:

foo

Becomes:

foo

This is incorrect because the space between the closing
 and opening  has completely disappeared.

Hi, I have found the issue... :/ the problem was that "dom->loadHTML()" without "LIBXML_HTML_NODEFDTD" will not keep the white-spaces.

@voku Merry Christmas and thanks for your work! 🎅
I will of course be testing it when a tag is available and hopefully I won't need to create any more issues 😁

@Bilge I wish you also some nice christmas days   🎅

authors: Bilge voku

repo: voku/HtmlMin


text:
ecs.ExtendVolume missing

.

@BusyOppo
Thank you for using our SDK tools and make a suggestion ！
For this issue, because on our service gateway, ecs and ebs is two different service with name ecs and storage_ebs,
and our sdk service package only support one service name in one package, so we split them to two different package.
感谢使用我们的SDK和提出建议
在我们的服务网关上，虚机和云盘是两个不同的服务注册，注册的名字分别是ecs和storage_ebs，并且我们的SDK的设计是按照服务名称做隔离的，一个服务包下面就是代表唯一的服务名，所以我们会拆成两个

repo: volcengine/volcengine-go-sdk


text:
question about read-only store

I use build-push job load five records to read-only store, but i can search only two records use StoreClient API . I want to find why i cant find the other record.  What can i do for it?

Is this on the latest master? Do you think you could provide a sample dataset and unit test that reproduces the error? We'll be glad to fix it if there is indeed such a bug (:

Thanks FelixGV, i have used the latest master , and i will put my store.xml and dataset here, but i don't know how to give you my unit test, so i describe how i executed.

I get the avro file by useing my mapreduce job ,the result file contains key and value like this

Obj^A^B^Vavro.schemaÌ^B{"type":"record","name":"test","namespace":"test","doc":"test","fields":[{"name":"fieldkey","type":"string","doc":""},{"name":"fieldvalue","type":"string","doc":""}]}^@<8e>LÎÝ0+zö«Í56^Yìí^O^D>
test0^Ntest1
test1^Ttest2<8e>LÎÝ0+zö«Í56^Yìí^O

Then i execute my build push job create file local file .metadata   ,0_0_0.data,0_0_0.index,1_0_0.data,1_0_0.index
Finally i can get test1 by key equals test0, but i cant get test2 by test1
store.xml:

<store>
    <name>test</name>
    <persistence>read-only</persistence>
    <description>Test store</description>
    <owners>hermoine@hogwarts.edu</owners>
    <routing-strategy>consistent-routing</routing-strategy>
    <routing>client</routing>
    <replication-factor>1</replication-factor>
    <required-reads>1</required-reads>
    <required-writes>1</required-writes>
    <hinted-handoff-strategy>consistent-handoff</hinted-handoff-strategy>
    <key-serializer>
                         <type>avro-generic</type>
                         <schema-info version="0">"string"</schema-info>
    </key-serializer>
    <value-serializer>
                         <type>avro-generic</type>
                         <schema-info version="0">"string"</schema-info>
    </value-serializer>
</store>

dataset
test1
test2

What was the conclusion ? Just curious to understand what caused this.
Thanks,
Arun.
On Wed, Feb 11, 2015 at 6:46 PM, ARES-Z notifications@github.com wrote:

Closed #238 https://github.com/voldemort/voldemort/issues/238.
—
Reply to this email directly or view it on GitHub
https://github.com/voldemort/voldemort/issues/238#event-234410631.

authors: ARES-Z FelixGV arunthirupathi

repo: voldemort/voldemort


text:
Dialog closes with no console info when Q.Confirm used cascaded and more that one time

I've got this a code in ...dialog.ts that asks 2 questions and then suggest values based appon the answers, but if I use the cascated Q.Confirm and change the lookup for 3 Times to check the values, the dialog closes itself and no information is displayed in console, event using the confirmation before close won't work.
If I won't cascade the questions then it works ok, can this be a behaviour problem of the framework or is it a limitation ?
...
constructor() {
            super();

            FichaProjeto.Projetos.dialogCloseConfirmation(this.element);

            this.form.ErpEntidadeA.changeSelect2(e => {

                //Se a Entidade não for Nula
                if (this.form.ErpEntidadeA.value != null && this.form.ErpEntidadeA.value != '') {

                    //Se o tipo de Entidade não for Nulo
                    if (this.form.ErpTipoEntidadeA.value != null && this.form.ErpTipoEntidadeA.value != '') {
                        switch (this.form.ErpTipoEntidadeA.value.toString()) {
                            case "C":
                                Q.confirm
                                    (
                                    "Pretende sugerir a Condição de Pagamento e o Modo de Pagamento da Entidade escolhida",
                                    () => {
                                        //Q.notifyInfo($(this).attr("title"));
                                        var cliente = Q.tryFirst(Tabelas.ClientesRow.getLookup().items, x => x.Cliente == this.form.ErpEntidadeA.value);
                                        if (cliente != null) {
                                            //Sugeridos do Cliente !!!
                                            this.form.CondPag.value = cliente.CondPag;
                                            this.form.ModoPag.value = cliente.ModoPag;

                                            //Se o tipo de Entidade não for Nulo
                                            if (this.form.CondPag.value != null && this.form.CondPag.value != '') {

                                                Q.confirm
                                                    (
                                                    "Pretende sugerir a Condição de Pagamento no Contrato também ?",
                                                    () => {
                                                        this.form.CduCondPagContrato.value = this.form.CondPag.value;
                                                        Q.notifySuccess("Condição de Pagamento no Contrato sugerida com sucesso");
                                                    }
                                                    ,
                                                    {
                                                        onNo: () => {
                                                            Q.notifySuccess("Valores sugeridos com sucesso");
                                                            Q.notifyInfo("Condição de Pagamento no Contrato será Mantida");
                                                        },
                                                        onCancel: () => {
                                                            Q.notifySuccess("Valores sugeridos com sucesso");
                                                            Q.notifyInfo("Condição de Pagamento no Contrato será Mantida");
                                                        }
                                                    }
                                                    );
                                            }

                                            Q.notifySuccess("Valores sugeridos com sucesso");
                                            Q.notifySuccess("Condição de Pagamento no Contrato sugerida com sucesso");
                                        }
                                    }
                                    ,
                                    {
                                        onNo: () => {
                                            Q.notifyInfo("Serão mantidos os valores anteriores");
                                        },
                                        onCancel: () => {
                                            Q.notifyInfo("Serão mantidos os valores anteriores");
                                        }
                                    }
                                    );
                                break;

                            default:
                                //Ignorar por agora
                                break;
                        }
                    }
                }
            });
...
        }

Anyone ?
Please test this behaviour its really troublesome :(

You may try with Q.Router.enabled = false on that page. Or, do it before showing first dialog, reenable after its complete.

@volkanceylan thanks a lot, will try for sure. 👍

Works as expected... Thanks @volkanceylan as always awesome support ;)

authors: brunobola volkanceylan

repo: volkanceylan/Serenity


text:
Serenity demo dosen't load on .NetCore 3.0

I need a virsion that I can run on.NetCore 3.0 but when follow this link
[https://marketplace.visualstudio.com/items?itemName=VolkanCeylan.SereneSerenityApplicationTemplate]
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 3.1.0 is not compatible with netcoreapp3.0 (.NETCoreApp,Version=v3.0). Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 3.1.0 supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)	Serene3.Web	C:\Users\javaheri\source\repos\Serene3\Serene3\Serene3.Web\Serene3.Web.csproj
how can I get the older version that runs in .NetCore 3.0?

Hi @amirkian ,
If you know the Serenity version which was built to run on .NET core 3.0 (unfortunately I don't know this - I am not sure if there ever was one - I think there was only one for .NET core 2.2 and then the .net Core 3.1-based version), then you can go into github, click on the code button and then click on commit:

There you can scroll down (and you will have to page back until you have the version which is for .net core 3.0 - if there is any at all - see my comment above).
Then you click on the desired version:

Then you click on Browse files:

Then you click on Code and then on Download ZIP:

Hope this helps.
With kind regards,
John

I did so and I installed this version  and I set the senerity.core to my start up project in the soulotion but I get this error

"Severity	Code	Description	Project	File	Line	Suppression State	Suppression State
Error	CS5001	Program does not contain a static 'Main' method suitable for an entry point	Serenity.Core (netstandard2.0)	C:\Users\javaheri\source\repos\oldersenerity\Serenity.Core\CSC	1		Active
"

Compare your csproj with https://github.com/volkanceylan/Serene/blob/master/Serene/Serene.Core/Serene.Core.csproj

by updating visual studio version its done .

authors: JohnRanger amirkian welcometoall


text:
License

LICENSE
CONTRIBUTORS.md

This change is

The opam file also has a license field that needs to be fixed.

Fixed

repo: volodeyka/event-struct


text:
ui fixes in create proposal

Preview link: https://agora-next-lhiqdia5y-voteagora.vercel.app/
Linear issue: https://linear.app/agora-app/issue/AGORA-1584/button-to-delete-an-option-for-approval-vote-creation-disappeared
Solves different UI issues:

Title renamed to Title (no markdown)
Popup text should be white
Add delete buttons back to approval proposal options

PR-Codex overview
Focus of this PR:
This PR focuses on making style changes to the ProposalCreation component.
Detailed summary:

Added color: white to the styles.module.scss file in the shared component.
Removed the __option_title class and made corresponding changes in the ApprovalOptionsRow.tsx file in the ProposalCreation component.
Added a new styling for the option title in the ApprovalOptionsRow.tsx file.
Updated the label text for the option title in the ApprovalOptionsRow.tsx file.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Noticed a few issues (see video). Once fixed, feel free to merge.
Uploading Arc.mp4…

https://github.com/voteagora/agora-next/assets/5835973/b7f5185c-7c5c-48a4-997d-19904d681b87

authors: ferrodri yitongzhang

repo: voteagora/agora-next


text:
:lipstick: 広告ドメインブロックアイコンをRTBドメインブロックアイコンに変更

Check List (If you added new component in this PR)

[x] Export the component in src/components/index.ts
[x] Add example to .storybook/documents/Information/Samples/Samples.stories.tsx
[x] Localize added component

@deatiger
これどういう文脈でしたっけ...?:thinking:
（破壊的変更になるのでなるべくやりたくないなという思いもあり.....）

@youchann

これどういう文脈でしたっけ...?🤔
（破壊的変更になるのでなるべくやりたくないなという思いもあり.....）

あー確かに、、
こちらで会話していました🙏
https://cartaholdings.slack.com/archives/C02PN354W48/p1683628053998699

いちおうSlackでは相談しましたが、止むを得ない場合はメジャーバージョンアップでいきましょうか

やはり差し替えないことになったので close
https://cartaholdings.slack.com/archives/C02PN354W48/p1683628053998699

authors: deatiger youchann

repo: voyagegroup/ingred-ui


text:
last clicked button is clicked again when you hit space

Hey pestis,
this is somewhat sleazy, but the spacebar annoyed me so much that I can only offer this fix,
https://github.com/vsariola/sointu/issues/156
I hope I made my intention clear - copying original sources is not the most future-proof thing ever, but this was a sacrifice I was wiling to take, considering that gio is not even in major release 1 yet.

Oh, and if you are submitting a "fix:" commit, I usually put the CHANGELOG.md change as a part of that same commit, so by reading the commit, you also see a good description of what happened. "docs:" commit just indicates that no code was changed so when figuring out why something has recently stopped working, you don't need to read through those "docs:" commits. But the vice versa is not important: if documentation is "not working", we just change it, we don't need to figure out when it was changed or why :)

I stand corrected, there is a bit more use of the f32color than I remembered. But the other uses are  f32color.Hovered(b.Background) and f32color.Disabled(b.Background), but for our buttons, b.Background is always either transparent or th.Palette.Fg`. I'm sure we pick something simple for the Hover and Disabled colors without the generic implementations of f32color.
I don't think we ever use the gioui's Disabled mechanism at all (maybe we should...), and hover color can probably be put into the ButtonStyle, to let user define it. We can give reasonable hover color already in the ToggleIcon / LowEmphasisButton / etc. methods.

I'll just merge this; I am getting annoyed by the focus capturing myself too :) Thank you for your contribution!

repo: vsariola/sointu


text:
Adjust appuio managed billing

This PR will enabled billing for managed services.
Checklist

[x] The PR has a meaningful title. It will be used to auto generate the
changelog.
The PR has a meaningful description that sums up the change. It will be
linked in the changelog.
[x] PR contains a single logical change (to build a better changelog).
[x] Categorize the PR by adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog.
[ ] Link this PR to related issues or PRs.

Tests have been performed already, the metrics are being exported to billing mimir for at least one cluster.

repo: vshn/component-appcat


text:
How to use Blynk.Inject with ESP32?

Hello!
Where can I find an example of using Blynk.Inject with this package?

could you suggest?
I used wifimgr.py. Modified the html/py code to collect credentials by storing them in wifi.dat and then, used them in my main code.

@ebolisa, I mean the implementation of the Blynk.Inject function for connecting in the application, as in this video

@ebolisa, I mean the implementation of the Blynk.Inject function for connecting in the application, as in this video

I undestood you. wifimgr.py puts your device in AP mode like shown in the video. Then you introduce your router and Blynk credentials. At reboot, your device will automatically connect to Blynk. At least, that's the way I do it.

@ebolisa, could you show a complete example?

@ebolisa, could you show a complete example?

First make wifimgr.py work without Blynk.
Then modify its html code to accept the blynk token.
Modify its py code so it can be read.
Then in boot.py:
try:
    wlan = wifimgr.get_connection()
    BLYNK_AUTH = wifimgr.get_profiles()[2]
    print('** Wifi connection established **')
    if wlan is None:
        print("Could not initialize the network connection.")
        while True:
            pass  # you shall not pass :D
except Exception:
    print('Wifi connection error...')
    umachine.reset()

in main.py:
# Initialize Blynk
try:
#     blynk = BlynkLib.Blynk(BLYNK_AUTH) # faster

#      or....

    blynk = BlynkLib.Blynk(BLYNK_AUTH,
        insecure=True,          	       # disable SSL/TLS
        server='lon1.blynk.cloud',	# lon1 fra1.blynk.cloud or blynk.cloud
        port=80,                	               # set server port
        heartbeat=30, 		       # set heartbeat to 30 secs
        log=dprint              	       # use print function for debug logging
        )
except OSError as e:
    umachine.restart()

@blynk.on("connected")
def blynk_connected(ping):
    print('Blynk ready. Ping:', ping, 'ms')
    blynk.sync_virtual()

@blynk.on("disconnected")
def blynk_disconnected():
    print('Blynk disconnected')
    utime.sleep(5)
    umachine.reset()

authors: EugeneRymarev ebolisa

repo: vshymanskyy/blynk-library-python


text:
Feature/UI search input

What's the purpose of this pull request?

How it works?

How to test it?

References

Example of Styling: https://codesandbox.io/s/store-ui-search-input-styling-nijuh

repo: vtex/faststore


text:
[Remoto] Vue.Js Developer @ Jobsity

Hi GitHub community!
At Jobsity we´re looking for Vue.Js Senior developers (+3 years of experience) with a good English level.
We offer 100% remote positions, very good salaries in USD and some more benefits:
-15 working days of paid vacations
-3 extra off days per year
-Paid and off local holidays
-Paid time off
-Budget for e-learning courses
-Financing program for equipment
-Bonuses for referrals
If you´re interested, don´t hesitate to contact me via email at luz.semo@jobsity.com or LinkedIn :)

Hi I am a vue.js developer and I feel comfortable to take the job

repo: vuejs-br/vagas


text:
Module not found: Error: Can't resolve '@/components/Hello'

I created a new project using this template. Made default selection for every option that vue init asked. Then I ran the following commands
cd <project-dir>
npm install
vuew build src/main.js --prod

The last command gives an error that coponent @/components/Hello cannot be resolved.
I have not changed anything in the project yet.
However, if I run npm run dev everything just works fine.

What is vuew build?
That's not a functionality of this template

Ah, I think you try and owe vue-cli build?
Nope. Thar r has its own build command, have a look in package.json

authors: LinusBorg schatekar

repo: vuejs-templates/webpack


text:
Uglify error when build

Hello. I got an error with one of the packages vue-particles when building the project. It's because it's using ES6 syntax I guess. I can't find the answer how to solve it. I even doesn't see where Uglify comes from in webpack template, I see no related plugins.
ERROR in static/js/vendor.65207c1cf20abf7ff70e.js from UglifyJs
Unexpected token: punc (() [./~/vue-particles/src/vue-particles/index.js:6,0][static/js/vendor.65207c1cf20abf7ff70e.js:33623,12]

Can somebody help?

I even doesn't see where Uglify comes from in webpack template, I see no related plugins.
That would be here

I can't find the answer how to solve it.
You already commented two different closed issues where solutions were provided. You have to adjust the babel-loader's include paths here so that the source will be transpiled to ES5

@LinusBorg if I add resolve('node_modules/menu-aim') then I got other kind of Error
ERROR in ./~/menu-aim/src/index.js
Module build failed: Error: Couldn't find preset "es2015" relative to directory "/home/***/Documents/WORK/EXAMPLES/vue-examples/node_modules/menu-aim"

then install that preset (babel-preset-es2015).
babel-loader finds the .babelrc file in that pakcages folder and tries to use its settings for transpilation, but  that package is not installed because the webapck template uses a different one.

@LinusBorg I had errors with both of this packages. It worked with vue-particles, but menu-aim throws this error.

Well, then that seems to be a problem of that package - its code isa ppearantly not completely transpiled to ES5, even though it appears it should.

Thanks, @LinusBorg

How to solve it? Someone? I have same problem!

authors: LinusBorg ddiegommachado iamdubx


text:
[WIP] Update: add htmlhint

fixes #210

Should we provide a .htmlhintrc file with some preset defaults too?

Also, should this be an option together with ESLint or should it be a separate option during vue-cli init time? I'm not sure which is the better option to be honest. Thoughts anyone?

@Aladdin-ADD, @MaxMilton, I think having a separate option would be better than combining it with eslint since the whole vue ecosystem is non-opinionated and highly configurable, even tho I think nobody will use just one of them.

I think, just like @MaxMilton said, there should be .htmlhintrc and it would be nice to add htmllint src/**/*.vue to scripts in package.json I think.

I got an error running npm run dev, after adding this loader.

there are two issues here:

showing "Failed to compile with 1 errors", it is no much helpful to a user. can we change some config to show more info?
why this error? I just followed the htmlhint-loader's docs, did I forget something?

Looks like there might soon be a solution for the blank error in friendly-errors-webpack-plugin, see this PR: https://github.com/geowarin/friendly-errors-webpack-plugin/pull/52

authors: Aladdin-ADD MaxMilton nickmessing


text:
Adding vue-notification-system to notifications

General

✏ Mark the necessary items without changing the structure of the PR template.

[x] Pull request template structure not broken

Type

ℹ  What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] Fix
[ ] Feature

Checklist

ℹ  Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉  Put an x in the boxes that apply.

[x] Title as described
[x] Make sure you put things in the right category!
[x] Always add your items to the end of a list

Open Source

[ ] The documentation (README) contains a description of the project, illustration of the project with a demo or screenshots and a CONTRIBUTING section
[ ] The documentation is in English.
[ ] The project is active and maintained.
[ ] The project accepts contributions.
[ ] Not a commercial product

Apps/Websites

[x] The website is available without errors or ssl certificate problems, and load in a reasonable amount of time.
[x] The website is using vuejs intensively. It should detect vue with vue-devtools.

If you cannot detect vue with vue-devtools due to work at non public pages (e.g. for enterprise website), you can send Pull Request with screenshot that detected it.

[x] The website is original and not too simple. For that reason, blogs and simple landing pages are rejected.
[ ] A commercial product using Vue, provided that guests could reasonably check out how Vue was used A commercial product using Vue, provided that guests could reasonably check out how Vue was used (i.e. A headless CMS which uses Vue for the Admin/editor Area and offers a free tier).

This component isn't open source. Should it go in a different section?

This component isn't open source. Should it go in a different section?

The company will not be able to make suggestions or leave error messages for your product

I'm not sure i understand. There is no public repository to link to. Is that required to be added to this list? The NPM package is public which is why I linked that instead. Let me know what I should change. Thanks!

Hey @javimendezona
just jumping in as I've been a bit surprised about the package size: It's 21.2 MB according to the NPM page? That's quite a lot - roughly seven times the size of Vue tiself. What is making it so large?
Cheers,
Peter

Hmm that's a good point. I must have done something wrong with the vue build in terms of the dependencies.  I'm relatively new to publishing to npm so I probably did something wrong there. I'll take a look at it. Thanks

I'm no expert in this, but I've had a look brief look and seen some webpack stuff - I guess that doesn't need to be in. Just the pure code.

I'm not sure i understand. There is no public repository to link to. Is that required to be added to this list? The NPM package is public which is why I linked that instead. Let me know what I should change. Thanks!

the rules CONTRIBUTING

@spekulatius I updated the npm package after rebuilding with different build settings which brought the size down. Sorry for the long delay, just had some big personal life changes in the last couple months

Still shows the same size for me:

@javimendezona
Not sure what the reason is...

@javimendezona There is still no link to github repository

authors: Scrum javimendezona spekulatius

repo: vuejs/awesome-vue


text:
Circular components in Vue3 typescript + setup macro fail to build

Version
3.2.25
Reproduction link
github.com
Steps to reproduce
Try and build the project (npm run build) or open it with VSCode + Volar
What is expected?
The project is built without any errors
What is actually happening?
The compiler returns multiple errors stating that all properties didn't exist.

Running in dev mode works just fine.

Looks like cross-references are causing the problem. comment

<template>

B

</template>

Will work properly.

I'm having a similar issue. According to the docs components can be recursive. But appears to be an issue when the recursion is circular. A -> B -> A vs A -> A -> A
https://vuejs.org/api/sfc-script-setup.html#recursive-components

It works fine after updating all the dependencies to the latest versions. So, I consider this issue resolved.
If you still encounter similar problems, please open a new issue with new reproductions.

repo: vuejs/core


text:
打包后ref获取节点失败

Vue version
3.2.8
Link to minimal reproduction
https://nkapp.huayuan001.com/resources/dist/index.html#/
Steps to reproduce

import {
ref,
onMounted
} from 'vue'
onMounted(() => {
console.log(page.value);
})
What is expected?

What is actually happening?
undefined
System Info
System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 6.00 GB / 15.37 GB
  Binaries:
    Node: 14.21.1 - D:\nodejs\node.EXE
    npm: 6.14.17 - D:\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.819.0), Chromium (107.0.1418.35)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vue: ^3.2.8 => 3.2.8

Any additional comments?
在测试环境是正常的，但是当我打包后就变成了undefined

Not a valid reproduction. Assuming duplicate of https://github.com/vuejs/core/issues/6677


text:
Dynamic components do not trigger "Failed to resolve component" warning

Vue version
3.3.11
Link to minimal reproduction
https://stackblitz.com/edit/vue-dsetmr?file=src%2FApp.vue
Steps to reproduce

On load, no content and warnings are shown.
Comment out case B (line 6)
A [Vue warn]: Failed to resolve component: hello-world warning is shown

What is expected?
A dynamic component that loads a component that is not imported should throw a "Failed to resolve" warning, similar to how a direct use of a component that is not imported does.
What is actually happening?
A dynamic component, referencing a component which is not imported, does not show a "Failed to resolve" warning. If the same component is used directly, but not imported, it does show the warning correctly
System Info
No response
Any additional comments?
In our project, we decided to remove our global components, but some of these global components were used in dynamic components. In our case, we ended up with warnings for all statically used components with missing imports, but no warnings for dynamically used components. This resulted in some parts of our application missing without any indication.

This is somewhat by design because <component is="..."> can be used to render native tags or custom elements. We don't want to throw failed resolution warnings in such cases.
For static components, native tags or custom elements are already ruled out at the compilation phase so we can be sure they are resolving for components only.
We could add some way to indicate the dynamic component should resolve for components only, although I'm not sure how much that would help in your specific case.

Yes, I understand what you mean, and the proposed solution where it would only resolve for components would indeed not be enough as we sometimes have dynamic components that can be either a native tag or a component depending on user input/state.
I'm not sure what exactly is possible and how Vue works internally, but I would think that on render you could check against a list of native tags, registered custom elements, and components. If it fails to resolve based on that list, a warning is show? At least something happens already, as the component is not rendered. I would assume that in the case where something could not be rendered, this is detectable and a (potentially different) warning is shown?
But again, I am by no means familiar on how Vue works internally, so for all I know this could be on the browser side.

I encountered the same issue. After using AsyncComponent, all errors within the component are replaced, and they now appear as "Unhandled error during execution of component event handler" or similar, which makes it difficult to read. I had to wrap potential error locations with a try-catch block to reacquire error information.

IMO the current behaviour is correct, since you can pass everything to the component, throwing an error because it cannot find the component might be weird when you do:
<component :is="isLink ? 'a': 'span'"/>

Should it warn a or span are not found? How about external custom components (aka component not available in vue to be imported)
I would recommend not using string on is prop, if you want dynamic component, resolve the component in a computed
<script setup>
import MyComp from './MyComp.vue'
import OtherComp from './OtherComp.vue'

const AbComp = Date.now() %2 ? MyComp  : OtherComp;
</script>

That's much error friendly, because the bundler will complain if the file is not found :)

authors: EspoirBao leondeklerk pikax yyx990803


text:
enhance: display default page instead select view (save one extra click )

instead:

display store by default:

Thanks for the feedback. It in our plans.

authors: reslear webfansplz

repo: vuejs/devtools-next


text:
vue.js not detected since Version 7.5.6

Hi,
Using Vue-cli 3 and Vue v2.7 on Mac OS 10.14.6, from today (7.5.6 version new release), my vue apps are not detected any more...
Everything was (quite) fine before.

The v7 version of devtools only supports Vue3. If your application is still using Vue2, please install the v6 version. If you're still using v5 version, you can install it here.

authors: frufin webfansplz

repo: vuejs/devtools


text:
代码格式化出错，每格式化一下，script下方会增加一个空白行

Can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter?

Can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter?

奇怪，用这个没有复现，我再查查

@MothWillion, @xinde do you have volar.config.js?

@MothWillion, @xinde do you have volar.config.js? (Please show me if yes)

No,I don't have volar.config.js

Do you have TS format settings in .vscode/settings.json?

Do you have TS format settings in .vscode/settings.json?

没有，因为有工作要马上处理，我安装回了上一个版本的volar，恢复了正常

I can reproduce this bug in https://github.com/johnsoncodehk/volar-starter

Just publish v1.1.1 to fix it, please update later.

我也有同样的问题

before

v1.1.1

@lmy1991 please open a new issue.

authors: RoadsideParty Tanimodori johnsoncodehk lmy1991 xinde

repo: vuejs/language-tools


text:
docs: provide a DefaultTheme.AlgoliaSearchOptions['locales'] template for translators

What problem is this solving
I believe that this feature will help to better the translators' work, because this will allow serving a translation that is paring the Chinese version that goes a little beyond translating the text of buttons and interface's instructions.
Proposed solution
I think we could provide a version of the object below with English content to give a starting point for those who are dedicated to translating the documentation content:
export const zhSearch: DefaultTheme.AlgoliaSearchOptions['locales'] = {
  zh: {
    placeholder: '搜索文档',
    translations: {
      button: {
        buttonText: '搜索文档',
        buttonAriaLabel: '搜索文档',
      },
      modal: {
        searchBox: {
          resetButtonTitle: '清除查询条件',
          resetButtonAriaLabel: '清除查询条件',
          cancelButtonText: '取消',
          cancelButtonAriaLabel: '取消',
        },
        startScreen: {
          recentSearchesTitle: '搜索历史',
          noRecentSearchesText: '没有搜索历史',
          saveRecentSearchButtonTitle: '保存至搜索历史',
          removeRecentSearchButtonTitle: '从搜索历史中移除',
          favoriteSearchesTitle: '收藏',
          removeFavoriteSearchButtonTitle: '从收藏中移除',
        },
        errorScreen: {
          titleText: '无法获取结果',
          helpText: '你可能需要检查你的网络连接',
        },
        footer: {
          selectText: '选择',
          navigateText: '切换',
          closeText: '关闭',
          searchByText: '搜索供应商',
        },
        noResultsScreen: {
          noResultsText: '无法找到相关结果',
          suggestedQueryText: '你可以尝试查询',
          reportMissingResultsText: '你认为该查询应该有结果？',
          reportMissingResultsLinkText: '点击反馈',
        },
      },
    },
  },
}

Describe alternatives you've considered
I believe the solution proposed is good enough to be considered to be implemented.

@Jinjiang, what you think about the point I raised? It is not a big thing, but I believe to be worth of consideration.

Feel free to add it to the contribution guidelines

Agree. I think it's a good idea to provide a template for translations.

Feel free to add it to the contribution guidelines

Of course, I will edit the contribution guidelines soon. I just created the issue to know what you people think about this improvement for the documentation.

authors: Jinjiang nazarepiedady posva

repo: vuejs/pinia


text:
:lipstick: Change _App.vue

Little change in the UI
Vue ❤

Thanks a lot for the PR, we will do a proper redesign of the starter when it's closer to 1.0.

repo: vuejs/vite


text:
Allow relative sockjs URL

What problem does this feature solve?
I am using Nginx in development to terminate SSL and proxy to the dev-server (https://nginx/ => http://devserver:8080/) with devServer.public set appropriately, so I can use HTTPS/HTTP2 during development.
This had been working fine until beta16 commit:
https://github.com/vuejs/vue-cli/commit/2cbe373
which makes sockjs URL absolute with the wrong host/port, now in this case: https://10.0.1.6:8080/sockjs-node. Previously it was simply /sockjs-node.
I would like an option to either specify sockjsUrl explicitly OR an option to omit the protocol/host/port and just use the pathname /sockjs-node.
What does the proposed API look like?
module.exports = {
   devServer: {
      disableHostCheck: true,
      public: 'local.mox.cc',
      sockjsRelative: true, // OR
      sockjsUrl: '/sockjs-node'
   }
}

/cc @jkzing

I think this would be useful, not sure why we wouldn't want this to be able to be relative

@sickp How to use devServer.public to build relative url?

authors: JohnCampionJr sickp sokolovstas yyx990803

repo: vuejs/vue-cli


text:
My service-worker.js doesn't exist when the mode equals "development"

Version
3.0.0-rc.5
Node and OS info
yarn
Steps to reproduce
I have 2 environments production and development and for each one I build my Vue app with yarn run build --mode development or yarn run build --mode production.
I would like to test PWA in development environment but I noticed that the service-worker.js was not created in development mode. So my browser (Chrome) is not able to test that even if the content of the file seems minified in one the app.js aside chunk files (1.js, 2.js, ...).
How do you manage that to test PWA please?
What is expected?
PWA working even in development mode
What is actually happening?
Not working

yarn serve --mode production

@LinusBorg I would like to deploy it on my cluster in an Nginx image to simulate production condition (except code is not minified and is viewable to debug).
Is there a workaround by building the project?

Well you can disable the minification by reconfiguring webpack:
// in vue.config.js
chainWebpack: config => {
  if (process.env.NO_MINIMIZE) {
    config.optimization.minimize(false)
    config.optimization.delete('minimizer')
  }
}

Then run it like this:
NO_MINIMIZE=true vue-cli-service build

That's designed in purpose so the service worker cache doesn't mess with your hot module reloading and stuff.

How do you manage that to test PWA please?

The simplest way would be to run
yarn serve --mode production
Or just build the app and serve it though e.g. http-server.

Googling around this was the only thing I could find however using yarn serve --mode production is still yielding the replacement service-worker.js file, I was wondering if you might have any ideas why this was?

@mc6415 you found a solution? Been searching for hours how to get this to work, there doesn't seem to be anywhere that says what exactly the pwa plugin does, or where it stops and how to continue :(

That's designed in purpose so the service worker cache doesn't mess with your hot module reloading and stuff.
Service workers do more than just caching.  In order to test background sync and push notifications, is there a way to avoid abandoning hot reloading for manual prod rebuilding?

Did anyone ever find a solution for using service workers in development mode? That is, getting all the dev mode advantages plus a service worker? I'm in the exact same boat--using them in part for push notifications, and finding it hard to test my app because I have to rebuild in production to test those features. I've already tweaked Workbox's caching to check the network first, so in theory I've mitigated the issues caused by hot reloading.
Thanks.

Same here, need to use service worker with firebase, and rebuilding takes a good amount of time if compared with a server without hot reload, for example

authors: LinusBorg OwenMelbz Phen-Ro mateushsantos mc6415 ndarilek sneko


text:
Add an alternative for @vue/cli-plugin-eslint that uses prettier-eslint

What problem does this feature solve?
Vue-cli already offers, out of the box, linting/styling using prettier, standard or airbnb presets.
But what about using prettier along with some of these other setups? Prettier is a lot more apt at styling the code than eslint is, and using it alongside different linters usually make sense.
By having an alternative to @vue/cli-plugin-eslint that instead of calling plain eslint, calls prettier-eslint would allow more flexibility when mixing prettier with different linting presets.
As far as I can see, code would be exactly the same, just passing in prettier configuration.
What does the proposed API look like?
vue-cli-service prettier-lint

Hi @nolde, supposedly the new recommended way is using eslint-plugin-prettier but I didn't find a way to integrate with vue-cli 4.

authors: jdinartejesus nolde


text:
docs: Use vue add @vue/eslint instead of vue add eslint

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[x] Docs
[ ] Underlying tools
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

Other information:

plugins-and-presets.md: According to line 29, it should be vue add @vue/eslint instead of vue add eslint.
cli-service.md : It's better to use npx vue-cli-service instead of ./node_modules/.bin/vue-cli-service now.

What's your Vue CLI version?
It should have been supported since v3.11

As for the npx part, not everyone has npx installed on their machine. Some users only use yarn.

@sodatea The document on line 29 says "The command resolves @vue/eslint to the full package name @vue/cli-plugin-eslint".
For consistency, although it is supported, shouldn't this line be @vue/eslint?

Yeah for consistency the statement at line 29 needs to be changed.
We can add more explanations on this though:
For core plugins, it will resolve to @vue/cli-plugin-eslint; for any other 3rd-party plugin, it will resolve to vue-cli-plugin-foo.

Hmm... maybe we need to add another example for adding a plugin with a non-@vue scope now.

authors: sodatea zetaraku


text:
fix: fix jest migrator dependency merging

Thanks to @PiDelport
What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Docs
[ ] Underlying tools
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

Other information:

Thanks!

authors: PiDelport sodatea


text:
Hydration detection

What problem does this feature solve?
When an app is server rendered there is a case when server side state does not correspond to client side state on an init lifecycle. Take for example a window.matchMedia and conditional rendering depending on matching media queries, the actual media query matching happens after the created stage either on beforeMount or mounted.
If you take the mounted approach the downside is that client side rendered applications would also be forced into this mode of re-rendering after the initial render because there's no reliable way (at least that I am aware of) to detect that this component is being hydrated. With a beforeMount approach you'll certainly get hydration errors in production, which is a no go.
As a workaround your component can accept a prop like ssr or check for common SSR solutions presence like nuxt. Doing this for every isomorphic Vue library feels like a barrier for developers who want to support both client and server side rendering.
What does the proposed API look like?
Would it be possible to add a property on a component instance to indicate that in fact this component has hydration undergoing to make an informed decision what state update strategy to take?
{
  beforeMount() {
    if (this._hydrating) {
      bailout()
    } else {
      updateState()
    }
  }
}

I think most of those who use SSR use the ClientOnly component (same as Nuxt) and they are using this implementation
// https://github.com/frandiox/vite-ssr/blob/master/src/vue/components.ts
export const ClientOnly = defineComponent({
  name: 'ClientOnly',
  setup(_, { slots }) {
    const show = ref(false)
    onMounted(() => {
      show.value = true
    })

    return () => (show.value && slots.default ? slots.default() : null)
  },
})

This feature is needed on these components too.
Here is what I tried to do:
import { onMounted, defineComponent } from 'vue';

function onAfterHydration (fn: () => void) {
    if (typeof window === 'undefined') return;
    // @ts-ignore this is for checking if application is already mounted or not
    return document.querySelector('#app')?.__vue_app__ ? fn() : onMounted(fn);
}

export default defineComponent({
    setup (_, { slots }) {
        const show = ref(false);
        onAfterHydration(() => {
            show.value = true;
        });

        return () => (show.value && slots.default ? slots.default() : (slots.placeholder ? slots.placeholder() : null));
    },
});

authors: CyberAP SasanFarrokh

repo: vuejs/vue-next