Skip to content

Commit

Permalink
bug fixs (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuan authored Aug 29, 2024
1 parent eba6f32 commit e1d144d
Show file tree
Hide file tree
Showing 19 changed files with 759 additions and 719 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .env.dev
NODE_ENV=dev
#VUE_APP_DEV_IP=demo.casaos.io
VUE_APP_DEV_IP=10.0.0.71
VUE_APP_DEV_IP=10.0.0.72
# VUE_APP_DEV_IP=10.147.20.1
# VUE_APP_DEV_IP=192.168.2.15
# VUE_APP_DEV_IP=192.168.2.219
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

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

32 changes: 4 additions & 28 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/assets/lang/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "REQUIRE",
"MEMORY": "MEMORY",
"App Store": "App Store",
"Import to CasaOS": "Import to CasaOS",
"Import to CasaOS": "Import to ZimaOS",
"[Optional]": "Optional",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "When there are more than 1 containers specified in the Docker compose file, only the first one will be imported for now.",
"There was an error loading the data, please try again!": "There was an error loading the data. Please try again.",
"Port": "Ports",
"Single Drive Storage": "Single storage drive",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOS reserves 1% of file space when creating storage in EXT4 format.",
"Delete": "Delete",
"Download in preparation...": "Preparing to download...",
"Copied to clipboard": "Copied to clipboard",
"Set wallpaper successfully.": "Wallpaper set successfully.",
"Create Folder": "Create folder",
"Create File": "Create file",
"Add External Link/APP": "Add external link",
"External link setting": "External link setting",
"Local URL,Public URL": "A local URL or a public URL here",
"Eg: //192.168.1.1:5000 or https://www.google.com": "E.g. //192.168.1.1:5000 or https://www.google.com",
"App Name": "Title",
Expand Down
1 change: 1 addition & 0 deletions src/assets/lang/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"Create Folder": "Create folder",
"Create File": "Create file",
"Add External Link/APP": "Add external link",
"External link setting": "External link setting",
"Local URL,Public URL": "A local URL or a public URL here",
"Eg: //192.168.1.1:5000 or https://www.google.com": "E.g. //192.168.1.1:5000 or https://www.google.com",
"App Name": "Title",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/lang/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "RICHIEDI",
"MEMORY": "MEMORIA",
"App Store": "App Store",
"Import to CasaOS": "Importa in CasaOS",
"Import to CasaOS": "Importa in ZimaOS",
"[Optional]": "Facoltativo",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "Se c'è più di 1 container specificato nel Docker Compose, per il momento solo il primo verrà importato.",
"There was an error loading the data, please try again!": "Si è verificato un errore nel caricamento dei dati. Si prega di riprovare.",
"Port": "Porte",
"Single Drive Storage": "Unità di archiviazione singola",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS si riserva l'1% di spazio di archiviazione quando viene create una partizione in formato EXT4.",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOS si riserva l'1% di spazio di archiviazione quando viene create una partizione in formato EXT4.",
"Delete": "Elimina",
"Download in preparation...": "Preparazione al download...",
"Copied to clipboard": "Copiato negli appunti",
"Set wallpaper successfully.": "Sfondo impostato con successo.",
"Create Folder": "Crea cartella",
"Create File": "Crea file",
"Add External Link/APP": "Aggiungi collegamento esterno",
"External link setting": "Impostazioni collegamento esterno",
"Local URL,Public URL": "Un URL locale o un URL pubblico qui",
"Eg: //192.168.1.1:5000 or https://www.google.com": "Per es.: //192.168.1.1:5000 o https://www.google.com",
"App Name": "Titolo",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/lang/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "要件",
"MEMORY": "メモリ",
"App Store": "App Store",
"Import to CasaOS": "CasaOSにインポートする",
"Import to CasaOS": "ZimaOSにインポートする",
"[Optional]": "オプショナル",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "Docker Composeファイルに複数のコンテナが指定されている場合、現時点では最初のコンテナのみがインポートされます。",
"There was an error loading the data, please try again!": "データの読み込み中にエラーが発生しました。再試行してください。",
"Port": "ポート",
"Single Drive Storage": "シングルドライブストレージ",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOSはEXT4形式でストレージを作成する際、ファイルスペースの1%を予約します。",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOSはEXT4形式でストレージを作成する際、ファイルスペースの1%を予約します。",
"Delete": "削除",
"Download in preparation...": "ダウンロードを準備中...",
"Copied to clipboard": "クリップボードにコピーされました",
"Set wallpaper successfully.": "壁紙の設定が成功しました。",
"Create Folder": "フォルダ作成",
"Create File": "ファイル作成",
"Add External Link/APP": "外部リンク/アプリを追加",
"External link setting": "外部リンク設定",
"Local URL,Public URL": "ローカルURL、パブリックURL",
"Eg: //192.168.1.1:5000 or https://www.google.com": "例://192.168.1.1:5000またはhttps://www.google.com",
"App Name": "アプリ名",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/lang/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "필수",
"MEMORY": "메모리",
"App Store": "앱스토어",
"Import to CasaOS": "CasaOS로 불러오기",
"Import to CasaOS": "ZimaOS로 불러오기",
"[Optional]": "선택사항",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "Docker compose 파일에 1개 이상의 컨테이너가 명시되어 있는 경우, 우선 첫번째 컨테이너만 불러옵니다.",
"There was an error loading the data, please try again!": "데이터를 불러오는 중 오류가 발생했습니다. 다시 시도해 주세요.",
"Port": "포트",
"Single Drive Storage": "단일 저장소 드라이브",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS는 EXT4 형식의 저장소를 생성할 때 1%의 저장 공간을 예약합니다.",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOS는 EXT4 형식의 저장소를 생성할 때 1%의 저장 공간을 예약합니다.",
"Delete": "삭제",
"Download in preparation...": "다운로드 준비 중...",
"Copied to clipboard": "클립보드에 복사됨",
"Set wallpaper successfully.": "배경화면으로 설정했습니다.",
"Create Folder": "폴더 생성",
"Create File": "파일 생성",
"Add External Link/APP": "외부 링크 추가",
"External link setting": "외부 링크 설정",
"Local URL,Public URL": "로컬 URL 혹은 공용 URL",
"Eg: //192.168.1.1:5000 or https://www.google.com": "예시: //192.168.1.1:5000 또는 https://www.google.com",
"App Name": "제목",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/lang/nb_NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "PÅKREVD",
"MEMORY": "MINNE",
"App Store": "App Butikk",
"Import to CasaOS": "Importer til CasaOS",
"Import to CasaOS": "Importer til ZimaOS",
"[Optional]": "Valgfri",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "Når det er mer enn 1 container som er spesifisert i Docker-filen, vil bare den første bli importert.",
"There was an error loading the data, please try again!": "Det oppstod en feil under innhenting av data. Vennligst forsøk igjen.",
"Port": "Port",
"Single Drive Storage": "Enkel harddisk",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserverer 1 % av filplassen ved oppretting av lagring i EXT4-formatet.",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOS reserverer 1 % av filplassen ved oppretting av lagring i EXT4-formatet.",
"Delete": "Slett",
"Download in preparation...": "Forbereder nedlasting...",
"Copied to clipboard": "Kopiert til utklippstavle",
"Set wallpaper successfully.": "Bakgrunnsbildet er endret.",
"Create Folder": "Opprett mappe",
"Create File": "Opprett fil",
"Add External Link/APP": "Legg til ekstern lenke",
"External link setting": "Ekstern lenke innstillinger",
"Local URL,Public URL": "En lokal URL eller offentlig URL her",
"Eg: //192.168.1.1:5000 or https://www.google.com": "F.eks. //192.168.1.1:5000 eller https://www.google.com",
"App Name": "Tittel",
Expand Down
5 changes: 3 additions & 2 deletions src/assets/lang/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,21 @@
"REQUIRE": "必须",
"MEMORY": "内存",
"App Store": "应用中心",
"Import to CasaOS": "导入到 CasaOS",
"Import to CasaOS": "导入到 ZimaOS",
"[Optional]": "可选",
"Notice: If there are multiple services, only the first set can be analyzed correctly": "当在 Docker compose 文件中指定多个容器时,现在只导入第一个容器。",
"There was an error loading the data, please try again!": "加载数据时出错了,请重试!",
"Port": "端口",
"Single Drive Storage": "单分区存储驱动器",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS在创建EXT4格式的存储空间时会预留 1% 的文件空间。",
"CasaOS reserves 1% of file space when creating storage in EXT4 format.": "ZimaOS在创建EXT4格式的存储空间时会预留 1% 的文件空间。",
"Delete": "删除",
"Download in preparation...": "正在准备下载...",
"Copied to clipboard": "已复制到剪贴板",
"Set wallpaper successfully.": "成功设为壁纸.",
"Create Folder": "新建文件夹",
"Create File": "新建文件",
"Add External Link/APP": "添加外部链接",
"External link setting": "外部链接设置",
"Local URL,Public URL": "在这里添加本地URL或公共URL",
"Eg: //192.168.1.1:5000 or https://www.google.com": "例如: //192.168.1:5000 或 https://www.google.com",
"App Name": "标题",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@layer base {
@font-face {
font-family: 'BrittiSans';
src: url(/font/britti-sans-regular.woff) format('woff');
src: url(/modules/icewhale_app/font/britti-sans-regular.woff) format('woff');
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/components/AppSetting/ComposeConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
<input-group
:devices="service.devices"
:label="$t('Devices')"
name2="ZimaOS"
:name1="i18n(configData['x-casaos'].title)"
:message="$t('No devices now, click “+” to add one.')"
type="device"
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/AppStoreSource/AppStoreSourceManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getCurrentInstance, onBeforeUnmount, onMounted, ref } from "vue";
import { vOnClickOutside } from "@vueuse/components";
import i18n from "@/plugins/i18n";
import DOMPurify from 'dompurify';
const emit = defineEmits(["refreshAppStore", "refreshSize"]);
const props = defineProps(["totalApps"]);
Expand Down Expand Up @@ -95,7 +96,7 @@ function registerAppStore(repoUrl) {
.catch((err) => {
if ([400, 409, 500].includes(err.response.status)) {
app.$buefy.toast.open({
message: err.response.data.message,
message: new Option(err.response.data.message).innerHTML,
duration: 5000,
type: "is-warning",
});
Expand Down
8 changes: 6 additions & 2 deletions src/components/Apps/AppSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,15 @@ export default {
this.oldAppList = orgOldAppList;
let linkAppList = await this.getLinkAppList();
linkAppList.forEach((item) => {
linkAppList.forEach((item, i) => {
// linkApp does not have title.
item.title = {
en_us: item.name,
};
item.linkId = i;
});
console.log("linkAppList", linkAppList);
// mirco app list
if (this.mircoAppList.length === 0) {
const mircoAppListRaw = await this.getModuleUIEntries();
Expand Down Expand Up @@ -455,7 +458,7 @@ export default {
);
});
const sortedList = sortedAppList.map((obj) => obj.name);
const sortedList = sortedAppList.map((obj) => obj.name);
this.appList = sortedAppList;
if (!isEqual(lateSortList, sortedList)) {
this.saveSortData();
Expand Down Expand Up @@ -677,6 +680,7 @@ export default {
linkName: item.name,
linkHost: item.hostname,
linkIcon: item.icon,
linkId: item.linkId?.toString() ?? "",
},
});
},
Expand Down
Loading

0 comments on commit e1d144d

Please sign in to comment.