Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[AssetMapper] Improve link generation script#52869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@smnandre
Copy link
Member

@smnandresmnandre commentedDec 2, 2023
edited
Loading

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
Issues-
LicenseMIT

Avoid JS console warnings due to missing comma and shorten a bit the code
(document.head is available since IE9)

Felt on it while investigating this HTTPS/2/Push thing with Firefox

(poke@weaverryan)

Update: remove the "?" after 7.1 to please carson :)
Update(bis): target 6.4 / bugfix

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "7.1" but it seems your PR description refers to branch "7.1 ?".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

smnandre reacted with rocket emoji

@nicolas-grekas
Copy link
Member

let's do this on 6.4 as a bugfix

$this->assertStringContainsString('<link rel="stylesheet" href="/subdirectory/assets/styles/app-preload-d1g35t.css">',$html);
// non-preloaded CSS file
$this->assertStringContainsString('"app_css_no_preload": "data:application/javascript,const%20d%3Ddocument%2Cl%3Dd.createElement%28%22link%22%29%3Bl.rel%3D%22stylesheet%22%2Cl.href%3D%22%2Fsubdirectory%2Fassets%2Fstyles%2Fapp-nopreload-d1g35t.css%22%2C%28d.head%7C%7Cd.getElementsByTagName%28%22head%22%29%5B0%5D%29.appendChild%28l%29',$html);
// $this->assertStringContainsString('"app_css_no_preload": "data:application/javascript,document.head.appendChild(Object.assign(document.createElement("link"),{rel:"stylesheet",href:"/subdirectory/assets/styles/app-nopreload-d1g35t.css"})', $html);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why this commented line ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why this commented line ?

The deleted was the old test

The new "commented" line is the humanely readable version of the new test the following line.

You do feel it's useless ?

Copy link
Member

@nicolas-grekasnicolas-grekasDec 26, 2023
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

yes it is, a commented line like this one is not useful for humans (and even less for computers)

@nicolas-grekas
Copy link
Member

looks like a rebase is missing :)

@smnandresmnandreforce-pushed theasset-mapper-link-script branch from76788f3 to0d7fcb7CompareDecember 26, 2023 16:58
@smnandre
Copy link
MemberAuthor

looks like a rebase is missing :)

Dropped all commits but mine..

I have this special power to destroy git histories like no-one.. so please double-check i've not done anything wrong there 😅

dunglas and tacman reacted with laugh emoji

@nicolas-grekas
Copy link
Member

Thank you@smnandre.

@nicolas-grekasnicolas-grekas merged commitc12ab3d intosymfony:6.4Dec 27, 2023
This was referencedDec 30, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

@dunglasdunglasdunglas approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuh

@lyrixxlyrixxAwaiting requested review from lyrixx

@ycerutoycerutoAwaiting requested review from yceruto

@welcoMatticwelcoMatticAwaiting requested review from welcoMattic

@kbondkbondAwaiting requested review from kbond

@chalasrchalasrAwaiting requested review from chalasr

@OskarStarkOskarStarkAwaiting requested review from OskarStark

@jderussejderusseAwaiting requested review from jderusse

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

5 participants

@smnandre@carsonbot@nicolas-grekas@dunglas@stof

[8]ページ先頭

©2009-2025 Movatter.jp