Fix config base64 parsing to utf-8 (#3110)

Closes #2609
This commit is contained in:
Lukas 2024-01-03 10:39:04 +01:00 committed by GitHub
parent 9ea4b6af39
commit ef3dabc679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View file

@ -23,6 +23,7 @@
"ansi_up": "^6.0.0",
"dayjs": "^1.11.9",
"fuse.js": "^7.0.0",
"js-base64": "^3.7.5",
"lodash": "^4.17.21",
"node-emoji": "^2.0.0",
"pinia": "^2.1.4",

View file

@ -26,6 +26,9 @@ dependencies:
fuse.js:
specifier: ^7.0.0
version: 7.0.0
js-base64:
specifier: ^3.7.5
version: 3.7.5
lodash:
specifier: ^4.17.21
version: 4.17.21
@ -2743,6 +2746,10 @@ packages:
hasBin: true
dev: true
/js-base64@3.7.5:
resolution: {integrity: sha512-3MEt5DTINKqfScXKfJFrRbxkrnk2AxPWGBL/ycjz4dK8iqiSJ06UxD8jh8xuh6p10TX4t2+7FsBYVxxQbMg+qA==}
dev: false
/js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
dev: true

View file

@ -13,6 +13,7 @@
</template>
<script lang="ts" setup>
import { decode } from 'js-base64';
import { inject, onMounted, Ref, ref, watch } from 'vue';
import SyntaxHighlight from '~/components/atomic/SyntaxHighlight';
@ -35,7 +36,7 @@ async function loadPipelineConfig() {
pipelineConfigs.value = (await apiClient.getPipelineConfig(repo.value.id, pipeline.value.number)).map((i) => ({
...i,
data: atob(i.data),
data: decode(i.data),
}));
}