Skip to content

Commit

Permalink
style-resources-loader replace css var import (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
githubnameting authored Apr 18, 2022
1 parent 36baf67 commit a8949b8
Show file tree
Hide file tree
Showing 59 changed files with 67 additions and 58 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"npm": "^7.19.1",
"panzoom": "^9.4.2",
"sortablejs": "^1.14.0",
"style-resources-loader": "^1.5.0",
"vue": "2.6.11",
"vue-class-component": "7.2.3",
"vue-click-outside": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddSchedule/ScheduleForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default class Addschedule extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.schedule-form-crontab-wrap {
display: flex;
justify-content: space-between;
Expand Down
1 change: 0 additions & 1 deletion src/components/AddSchedule/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ export default class Addschedule extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.schedule-form-wrap {
max-height: 60vh;
overflow-y: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckAction/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class CheckAction extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.alert-foot-wrap {
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckSubmit/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class CheckSubmit extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.alert-foot-wrap {
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeDialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class CodeModal extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.code-dialog {
.progress {
line-height: 20px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,5 @@ export default {
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
</style>
2 changes: 1 addition & 1 deletion src/components/CodeMarkdownEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default class CodeMarkdownEditor extends Vue {
</script>

<style lang="scss">
@import '../../assets/css/variable.scss';
/* 工具栏 */
.v-md-editor__toolbar {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreateConnection/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class CreateConnectionForm extends Vue {
</script>

<style lang="scss">
@import '../../assets/css/variable.scss';
.connect-form {
height: 450px;
overflow-y: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/components/DAGView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default class DAGView extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.des_wrap {
.des_item {
margin: 8px 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditTask/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default class EditTask extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.schedule-form-wrap {
max-height: 60vh;
overflow-y: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/components/FailureDetail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class SetSchedule extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.log-wrap {
.node-item-flex {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/components/GraphNode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class GraphNode extends Vue {
</script>

<style lang="scss" scoped>
@import '../../assets/css/variable.scss';
.node-circle {
position: relative;
width: 32px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/ChangeLang.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ChangeLang extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.change-lang {
margin-right: 10px;
.drop-icon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/GlobalHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class GlobalHelp extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.global-help {
margin-right: 10px;
.drop-icon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/HeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.el-menu--horizontal {
&.el-menu-header {
.el-menu-item:not(.is-disabled):focus, .el-menu-item:not(.is-disabled):hover, .el-submenu .el-submenu__title:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/UserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class UserInfo extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.user-info-wrapper {
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Header extends Vue {
}
</script>
<style lang="scss" scoped>
@import '../../assets/css/variable.scss';
.page-header {
display: flex;
background-color: $--color-nav;
Expand Down
2 changes: 1 addition & 1 deletion src/components/IconBtn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class IconBtn extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.icon-btn {
font-size: 22px;
&.has-bg {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputTag/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class InputToTag extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.input-to-tag {
width: 100%;
border: 1px solid $--border-update-schedule;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
}
</script>
<style lang="scss" scoped>
@import '../../assets/css/variable.scss';
.layout {
width: 100%;
height: 100vh;
Expand Down
1 change: 0 additions & 1 deletion src/components/SetDemo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export default class SetDemo extends Vue {
}
</script>
<style lang="scss">
@import '@/assets/css/variable.scss';
.set-demo {
display: inline-flex;
.btn {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SetSchedule/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class SetSchedule extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.schedule-form {
&-label {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class HomePage extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.home-page {
width: 100%;
height: calc(100vh - $page-header-height);
Expand Down
2 changes: 1 addition & 1 deletion src/page/IframeImage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class IframePage extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.cell-result-page {
width: 100%;
height: calc(100vh - $page-header-height);
Expand Down
2 changes: 1 addition & 1 deletion src/page/Jobs/JobsTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export default class JobsTable extends Vue {
</script>
<style lang="scss">
@import '../../../assets/css/variable.scss';
.jobs-table-wrap {
.job-id-wrap {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Jobs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class JobPage extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
.jobs-page {
.tab-wrap {
margin-top: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class Login extends Vue {
}
</script>
<style lang="scss">
@import '../../assets/css/variable.scss';
//
#loginPage {
.login-box {
width: 500px;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Schedules/Dag/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class DAG extends Vue {
</script>

<style lang="scss" scoped>
@import '../../../assets/css/variable.scss';
.dag-wrap {
padding: 36px 54px;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Schedules/Instance/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export default class Instance extends Vue {
</script>
<style lang="scss">
@import '../../../assets/css/variable.scss';
.instance-page {
.page-inner-header {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Schedules/Schedules/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default class Schedules extends Vue {
</script>

<style lang="scss">
@import '../../../assets/css/variable.scss';
.schedules-page {
.btns-search {
margin: 10px 0;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/DataCatalog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default class DataCataLog extends Vue {
}
</script>
<style lang="scss">
@import '../../../assets/css/variable.scss';
.dataCatalog {
width: 100%;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/CellBox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export default {
}
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.cell-box {
width: 100%;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/CellList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ export default {
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.cellListPage {
width: 100%;
background-color: $--color-white;
Expand Down
4 changes: 2 additions & 2 deletions src/page/Workspace/Notebook/CollapseCode/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class CollapseCodeEditor extends Vue {
</script>

<style lang="scss" scoped>
@import '../../../../assets/css/variable.scss';
.collapse-editor {
background-color: #fff;
font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
Expand Down Expand Up @@ -73,7 +73,7 @@ export default class CollapseCodeEditor extends Vue {
}
</style>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
// 颜色设置
.hljs-comment, .hljs-constant.hljs-numeric {
color: $cellCommentColor;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/CollapseCode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class CollapseCode extends Vue {
}
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.collapse-code {
padding-top: 19px;
.code-btn {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/ExcuteDetail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class ExcuteDetail extends Vue {
}
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.excute-detail {
overflow: auto;
.duration {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/ExcuteResult/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class ExcuteResult extends Vue {
}
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.cell-excute-result {
&-wrapper {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/FindAndReplace/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export default class FindAndReplace extends Vue {
</script>

<style lang="scss">
@import '../../../../assets/css/variable.scss';
.find-and-replace {
.dialog-title {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/LogMessage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class LogMessage extends Vue {
}
</script>
<style lang="scss">
@import '../../../../assets/css/variable.scss';
.log-message {
overflow: auto;
&-list {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/ShortcutDetail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class ShortcutDetail extends Vue {
</script>

<style lang="scss" scoped>
@import '../../../../assets/css/variable.scss';
.shortcut-detail {
.shortcut-sub-title {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/ShortcutItem/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class ShortcutItem extends Vue {
</script>
<style lang="scss" scoped>
@import '../../../../assets/css/variable.scss';
.shortcut-item {
margin: 9px 10px 9px 0;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Notebook/ShortcutPrompt/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class ShortcutPrompt extends Vue {
</script>

<style lang="scss">
@import '../../../../assets/css/variable.scss';
.shortcut-prompt {
.header {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/Workflow/components/ETNode/FormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class FormItem extends Vue {
</script>
<style lang="scss">
@import '../../../../../assets/css/variable.scss';
.form-code-editor {
border: 1px solid #eee;
border-radius: 4px;
Expand Down
Loading

0 comments on commit a8949b8

Please sign in to comment.