Skip to content

Commit fcfbdcc

Browse files
authored
Merge pull request #6831 from FlowFuse/6731-sass-imports
chore: change deprecated sass imports to use/forward syntax
2 parents 984047f + e8157c0 commit fcfbdcc

39 files changed

Lines changed: 76 additions & 43 deletions

config/webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ module.exports = function (env, argv) {
8888
{
8989
loader: 'sass-loader',
9090
options: {
91-
additionalData: '@import "@/ui-components/stylesheets/ff-colors.scss";@import "@/ui-components/stylesheets/ff-utility.scss";',
92-
sassOptions: {
93-
// Silence warnings about @import deprecation
94-
silenceDeprecations: ['import']
95-
}
91+
additionalData: '@use "@/ui-components/stylesheets/ff-colors.scss" as *;@use "@/ui-components/stylesheets/ff-utility.scss" as *;'
9692
}
9793
}
9894

frontend/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,5 @@ export default {
148148
</script>
149149
150150
<style lang="scss">
151-
@import "./stylesheets/common.scss";
151+
@use "./stylesheets/common.scss" as *;
152152
</style>

frontend/src/SetupApp.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ export default {
6767
</script>
6868
6969
<style lang="scss">
70-
@import "./stylesheets/common.scss";
70+
@use "./stylesheets/common.scss" as *;
7171
</style>

frontend/src/components/Accordion.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,7 @@ export default {
8989
}
9090
}
9191
</script>
92+
93+
<style lang="scss">
94+
@use "../stylesheets/components/accordion.scss" as *;
95+
</style>

frontend/src/components/CodePreviewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export default {
2020
</script>
2121

2222
<style lang="scss" scoped>
23-
@import "../stylesheets/components/code-previewer.scss";
23+
@use "../stylesheets/components/code-previewer.scss" as *;
2424
</style>

frontend/src/components/EmptyState.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ export default {
5252
</script>
5353

5454
<style lang="scss">
55-
@import "../stylesheets/components/empty-state.scss";
55+
@use "../stylesheets/components/empty-state.scss" as *;
5656
</style>

frontend/src/components/IconLink.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ export default {
3737
</script>
3838

3939
<style lang="scss" scoped>
40-
@import '../ui-components/stylesheets/ff-colors.scss';
41-
@import '../ui-components/stylesheets/ff-utility.scss';
42-
4340
.ff-icon-link {
4441
display: flex;
4542
justify-content: space-between;

frontend/src/components/InfoCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export default {
2323
</script>
2424

2525
<style lang="scss">
26-
@import "../stylesheets/components/info-card.scss";
26+
@use "../stylesheets/components/info-card.scss" as *;
2727
</style>

frontend/src/components/InterviewPopup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ export default {
7777
</script>
7878
7979
<style lang="scss">
80-
@import "../stylesheets/components/notifications.scss";
80+
@use "../stylesheets/components/notifications.scss" as *;
8181
</style>

frontend/src/components/TeamSelection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default {
127127
}
128128
</script>
129129
<style lang="scss">
130-
@import "../stylesheets/components/team-list.scss";
130+
@use "../stylesheets/components/team-list.scss" as *;
131131
132132
.ff-team-selection {
133133
&.ff-listbox {

0 commit comments

Comments
 (0)