Skip to content

Commit

Permalink
refactor: migrate to @shgk/nextcloud-styles
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Nov 10, 2024
1 parent cf38f44 commit d65f4c8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/authentication/renderer/AuthenticationApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async function login() {
}

.logo {
background: no-repeat center url('~@global-styles/core/img/logo/logo.svg');
background: no-repeat center url('~@shgk/nextcloud-styles/core/img/logo/logo.svg');
background-size: contain;
width: 175px;
height: 130px;
Expand Down
2 changes: 1 addition & 1 deletion src/authentication/renderer/authentication.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import '../../shared/assets/global.styles.css'
import '@shgk/nextcloud-styles'

import Vue from 'vue'
import AuthenticationApp from './AuthenticationApp.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/help/renderer/help.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import '../../shared/assets/global.styles.css'
import '@shgk/nextcloud-styles'

import Vue from 'vue'
import HelpApp from './HelpApp.vue'
Expand Down
16 changes: 0 additions & 16 deletions src/shared/assets/global.styles.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/shared/globals/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const OC = {
icon = MimeTypeList.files.includes(icon) ? icon : mimeType.split('/')[0]

try {
return require(`@global-styles/core/img/filetypes/${icon}.svg`)
return require(`@shgk/nextcloud-styles/core/img/filetypes/${icon}.svg`)
} catch {
return undefined
}
Expand Down
2 changes: 1 addition & 1 deletion src/talk/renderer/talk.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import '../../shared/assets/global.styles.css'
import '@shgk/nextcloud-styles'
import '@talk/css/icons.css'
import './assets/styles.css'
import './assets/overrides.css'
Expand Down
2 changes: 1 addition & 1 deletion src/upgrade/renderer/upgrade.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import '../../shared/assets/global.styles.css'
import '@shgk/nextcloud-styles'

import Vue from 'vue'
import UpgradeApp from './UpgradeApp.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/welcome/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import '@global-styles/dist/icons.css'
import '@shgk/nextcloud-styles/dist/icons.css'

import { appData } from '../app/AppData.js'
import { refetchAppDataIfDirty } from '../app/appData.service.js'
Expand Down
2 changes: 1 addition & 1 deletion webpack.renderer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const webpackRendererConfig = mergeWithRules({
resolve: {
alias: {
'@talk': TALK_PATH,
'@global-styles': path.resolve(__dirname, 'resources/server-global-styles', MAX_NEXTCLOUD_VERSION === NEXTCLOUD_MASTER_VERSION ? 'master' : `stable${MAX_NEXTCLOUD_VERSION}`),
'@shgk/nextcloud-styles': `@shgk/nextcloud-styles/${MAX_NEXTCLOUD_VERSION === NEXTCLOUD_MASTER_VERSION ? 'master' : ('stable' + MAX_NEXTCLOUD_VERSION)}`,
// To reuse modules between Talk Desktop and Talk, otherwise Talk has its own from its node_modules
'@nextcloud/axios': path.resolve(__dirname, 'node_modules', '@nextcloud/axios/dist/index.mjs'),
// Patched packages
Expand Down

0 comments on commit d65f4c8

Please sign in to comment.