Skip to content

Commit

Permalink
Fix config base64 parsing to utf-8 (#3110)
Browse files Browse the repository at this point in the history
Closes #2609
  • Loading branch information
lukashass committed Jan 3, 2024
1 parent 9ea4b6a commit ef3dabc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion web/src/views/repo/pipeline/PipelineConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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),
}));
}
Expand Down

0 comments on commit ef3dabc

Please sign in to comment.