Skip to content

Commit

Permalink
rootjs: logo inside the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Dec 1, 2021
1 parent af67112 commit f57636b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions rootjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-svg": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.4",
"ts-jest": "^27.0.7",
Expand Down
6 changes: 5 additions & 1 deletion rootjs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import globals from 'rollup-plugin-node-globals'
import embedCSS from 'rollup-plugin-embed-css'
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
import svg from 'rollup-plugin-svg'

const production = !process.env.ROLLUP_WATCH

Expand Down Expand Up @@ -39,7 +40,10 @@ const plugins = [
globals(),
builtins(),
production && terser(),
gzip()
gzip(),
svg({
base64: true
})
]

if (process.env.SERVER === 'true') {
Expand Down
1 change: 1 addition & 0 deletions rootjs/src/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion rootjs/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import App from './App.vue'
import logo from './img/logo.svg'

const name = 'ROOT Viewer'

Expand Down Expand Up @@ -33,7 +34,7 @@ const routes = [
const appInfo = {
name: name,
id: 'rootjs',
icon: 'jsroot',
img: logo,
extensions: [
{
extension: 'root',
Expand Down
22 changes: 21 additions & 1 deletion rootjs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,11 @@ estraverse@^5.1.0, estraverse@^5.2.0:
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==

estree-walker@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e"
integrity sha1-va/oCVOD2EFNXcLs9MkXO225QS4=

estree-walker@^0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39"
Expand Down Expand Up @@ -4761,7 +4766,7 @@ minimalistic-crypto-utils@^1.0.1:
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=

minimatch@^3.0.4:
minimatch@^3.0.2, minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
Expand Down Expand Up @@ -5818,6 +5823,13 @@ rollup-plugin-serve@^1.1.0:
mime ">=2.4.6"
opener "1"

rollup-plugin-svg@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-svg/-/rollup-plugin-svg-2.0.0.tgz#ce11b55e915d5b2190328c4e6632bd6b4fe12ee9"
integrity sha512-DmE7dSQHo1SC5L2uH2qul3Mjyd5oV6U1aVVkyvTLX/mUsRink7f1b1zaIm+32GEBA6EHu8H/JJi3DdWqM53ySQ==
dependencies:
rollup-pluginutils "^1.3.1"

rollup-plugin-terser@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d"
Expand Down Expand Up @@ -5850,6 +5862,14 @@ [email protected], rollup-pluginutils@^2.3.1, rollup-pluginutils@^2.8.1,
dependencies:
estree-walker "^0.6.1"

rollup-pluginutils@^1.3.1:
version "1.5.2"
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408"
integrity sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=
dependencies:
estree-walker "^0.2.1"
minimatch "^3.0.2"

rollup@^2.52.7:
version "2.59.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.59.0.tgz#108c61b0fa0a37ebc8d1f164f281622056f0db59"
Expand Down

0 comments on commit f57636b

Please sign in to comment.