Skip to content

Commit

Permalink
filter out env variables when zip
Browse files Browse the repository at this point in the history
  • Loading branch information
honwhy committed Apr 14, 2024
1 parent 83de95d commit 5d46c7d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion entrypoints/Contents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ onMounted(() => {
</script>

<template>
<div id="__baicizhanHelperSupportDiv__">
<div id="__baicizhanHelper__lgelpdnoogahffdkigeeonhggglogabb">
<SelectionPopper v-if="triggerMode !== 'never'" :trigger-mode="triggerMode" :show-style="showStyle" />
</div>
</template>
2 changes: 1 addition & 1 deletion entrypoints/PhrasePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface Props {
<div class="webui-popover translate-content">
<div class="webui-popover-inner">
<a href="#" class="close" />
<h3 class="webui-popover-title" />
<!-- <h3 class="webui-popover-title" /> -->
<div class="webui-popover-content" style="min-width: 360px;">
<p>{{ data }}</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion entrypoints/SelectionPopper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ onClickOutside(popoverRef, (event) => {
@after-leave="onAfterLeave"
>
<!-- icon 区域 -->
<div v-if="showIcon" ref="iconRef" name="__baicizhanHelperIconTips__" @click="onClick">
<div v-if="showIcon" ref="iconRef" name="" @click="onClick">
<div style="width: 25px; height: 25px;">
<img :src="iconSrc" style="max-width: 25px; border-radius: 5px; opacity: 0.8; cursor: pointer;">
</div>
Expand Down
8 changes: 5 additions & 3 deletions entrypoints/options/components/WordBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ function onChange() {
<div id="wordbookTabContent" class="tab-pane fade show active" role="tabpanel" aria-labelledby="wordbookTab">
<div class="container">
<div class="row">
<div class="col-sm-8">
<div class="col-sm-12">
<div class="row" style="margin: 20px 0;">
<div class="col-sm-5" style="padding: 0">
<div class="col-sm-4" style="padding: 0">
<el-select
id="wordbookSelect"
v-model="selectedBookId"
Expand All @@ -257,7 +257,7 @@ function onChange() {
>
<img style="width: 20px;" :src="refresh">
</button>
<div class="col-sm-4 offset-sm-2">
<div class="col-sm-4" style="margin-left: 20px">
<el-checkbox id="maskEnglishButton" v-model="englishMasked" label="隐藏英文" size="large" />
<el-checkbox id="maskMeanButton" v-model="meansMasked" label="隐藏释义" size="large" />
</div>
Expand All @@ -282,13 +282,15 @@ function onChange() {
<el-button
id="firstLettersAscOrderBtn" class="btn"
:class="{ 'btn-outline-primary': order === 'firstLettersAscOrder', 'btn-outline-secondary': order !== 'firstLettersAscOrder' }"
style="width: 100px"
@click="order = 'firstLettersAscOrder'"
>
首字母顺序
</el-button>
<el-button
id="firstLettersDescOrderBtn" class="btn"
:class="{ 'btn-outline-primary': order === 'firstLettersDescOrder', 'btn-outline-secondary': order !== 'firstLettersDescOrder' }"
style="width: 100px"
@click="order = 'firstLettersDescOrder'"
>
首字母倒序
Expand Down
3 changes: 3 additions & 0 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ export default defineConfig({
},
},
}),
zip: {
excludeSources: ['env.txt'],
},
})

0 comments on commit 5d46c7d

Please sign in to comment.