Skip to content

Remove SVG fallback - #25240

Merged
MorrisJobke merged 5 commits into
masterfrom
remove-svg
Jul 4, 2016
Merged

MorrisJobke merged 5 commits into
masterfrom
remove-svg

Conversation

@Henni

@Henni Henni commented Jun 23, 2016 •

Copy link
Copy Markdown
Contributor

(based on #25129)

ToDo:

  • remove javascript code for png fallback
  • remove png files
  • remove svg classes in html templates

@Henni

Henni commented Jun 23, 2016

Copy link
Copy Markdown
Contributor Author

/core/img/logo.png is used inside test files (e.g. tests/lib/Files/ViewTest.php)
@DeepDiver1975 @PVince81 can we get rid of these references?

@PVince81 PVince81 added this to the 9.2-next milestone Jun 24, 2016
@DeepDiver1975

Copy link
Copy Markdown
Contributor

Please fix the js unit test

07:41:08 PhantomJS 2.1.1 (Linux 0.0.0) Core base tests Link functions Images Generates image path with png ext when svg support is not available FAILED
07:41:08    Expected 'http://localhost/core/img/somefile.svg' to equal 'http://localhost/core/img/somefile.png'.
07:41:08    /ssd/jenkins/workspace/core-ci-linux-jsunit/database/sqlite/label/SLAVE/core/js/tests/specs/coreSpec.js:247:53
07:41:08    Expected 'http://localhost:9876/context.html//appsx/testapp/img/somefile.svg' to equal 'http://localhost:9876/context.html//appsx/testapp/img/somefile.png'.
07:41:08    /ssd/jenkins/workspace/core-ci-linux-jsunit/database/sqlite/label/SLAVE/core/js/tests/specs/coreSpec.js:248:54
07:41:08 ............................
07:41:12 PhantomJS 2.1.1 (Linux 0.0.0) Core base tests SVG extension replacement replaces svg extension with png when SVG not supported FAILED
07:41:12    Expected '/path/to/myicon.svg?someargs=1' to equal '/path/to/myicon.png?someargs=1'.
07:41:12    /ssd/jenkins/workspace/core-ci-linux-jsunit/database/sqlite/label/SLAVE/core/js/tests/specs/coreSpec.js:528:13

@Henni

Henni commented Jun 29, 2016

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 tests fixed

@PVince81

PVince81 commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

@DeepDiver1975 another weird JS unit tests failure:

09:17:18 + ./autotest-js.sh
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/body-parser/node_modules/raw-body requires bytes@'2.3.0' but will load
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/bytes,
09:17:18 npm WARN unmet dependency which is version 2.1.0
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/body-parser/node_modules/raw-body requires iconv-lite@'0.4.13' but will load
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/body-parser/node_modules/iconv-lite,
09:17:18 npm WARN unmet dependency which is version 0.4.11
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/serve-static/node_modules/send requires depd@'~1.1.0' but will load
09:17:18 npm WARN unmet dependency /ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/node_modules/karma/node_modules/connect/node_modules/depd,
09:17:18 npm WARN unmet dependency which is version 1.0.1
09:17:18 
09:17:18 module.js:340
09:17:18     throw err;
09:17:18           ^
09:17:18 Error: Cannot find module 'zeparser'
09:17:18     at Function.Module._resolveFilename (module.js:338:15)
09:17:18     at Function.Module._load (module.js:280:25)
09:17:18     at Module.require (module.js:364:17)
09:17:18     at require (module.js:380:17)
09:17:18     at Object.<anonymous> (/ssd/jenkins/workspace/core-ci-linux-jsunit@2/database/sqlite/label/SLAVE/build/lib/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/index.js:1:78)
09:17:18     at Module._compile (module.js:456:26)
09:17:18     at Object.Module._extensions..js (module.js:474:10)
09:17:18     at Module.load (module.js:356:32)
09:17:18     at Function.Module._load (module.js:312:12)
09:17:18     at Module.require (module.js:364:17)
09:17:19 Build step 'Conditional step (single)' marked build as failure
09:17:24 Setting commit status on GitHub for https://github.com/owncloud/core/commit/8ef6f84918ab8ff605f20d227a120f63e689eb76
09:17:25 Finished: FAILURE

@PVince81

PVince81 commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

@Henni I just rebased this onto master, else autotest-js.sh wouldn't run for me

After the rebase all JS tests passed.

Comment thread core/js/js.js
headers[parts[0].toLowerCase()]=value;
}
}
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder what the hell this was about...

@PVince81

PVince81 commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

Code looks good, GUI still looks good 👍

@PVince81

PVince81 commented Jul 4, 2016

Copy link
Copy Markdown
Contributor

@owncloud/designers @DeepDiver1975 @owncloud/javascript second review ?

@jancborchardt

Copy link
Copy Markdown
Contributor

Can't check the functionality atm cause laptop is in repair but great initiative @Henni! Finally we can get rid of all those dupe images …

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and still works 👍

@MorrisJobke
MorrisJobke merged commit 8b8d2b6 into master Jul 4, 2016
@MorrisJobke
MorrisJobke deleted the remove-svg branch July 4, 2016 15:49
PVince81 pushed a commit that referenced this pull request Jul 8, 2016
This reverts commit 8b8d2b6, reversing
changes made to a35747b.
DeepDiver1975 pushed a commit that referenced this pull request Jul 8, 2016
* Revert "Merge pull request #25240 from owncloud/remove-svg"

This reverts commit 8b8d2b6, reversing
changes made to a35747b.

* Revert "Merge pull request #25253 from owncloud/users-fixotherquotadropdown"

This reverts commit a35747b, reversing
changes made to a573b68.

* Revert "Merge pull request #25314 from owncloud/files_external-backends-config"

This reverts commit a573b68, reversing
changes made to 8147eef.

* Revert "Add all properties while creating a subscription (#25318)"

This reverts commit aaf4c30.

* Revert "Merge pull request #25276 from owncloud/delete-own-session-token"

This reverts commit e42ce62, reversing
changes made to aaf4c30.

* Revert "Merge pull request #25262 from owncloud/fed-sharing-error"

This reverts commit 027715f, reversing
changes made to e42ce62.
@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants