diff --git a/service/oss.go b/service/oss.go index 90911cf..7aeb5ff 100644 --- a/service/oss.go +++ b/service/oss.go @@ -47,7 +47,13 @@ func UploadFileToStorageSafe(user string, tag string, parent string, fullFilePat // DeleteFileFromStorage deletes file according to the file path. func DeleteFileFromStorage(filePath string) bool { - affected, err := casdoorsdk.DeleteResource(filePath) + // Create a Resource object for the new DeleteResource API + // Owner field will be automatically filled with the organization name by the SDK + resource := &casdoorsdk.Resource{ + Name: filePath, + } + + affected, err := casdoorsdk.DeleteResource(resource) if err != nil { panic(err) } diff --git a/web/src/locales/de/data.json b/web/src/locales/de/data.json index 80f5328..4a993b1 100644 --- a/web/src/locales/de/data.json +++ b/web/src/locales/de/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Erstellte Zeit", "Delete moderator success": "Moderator erfolgreich löschen", "Description": "Beschreibung", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "Kopfzeile Bild", "Hot": "Heiß", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Neue Ebene hinzufügen", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Hintergrundfarbe", "Change image": "Bild ändern", "Creat plane success": "Ebene erfolgreich erstellen", @@ -446,6 +449,7 @@ "Click here to search in ": "Hier klicken, um zu suchen ", "No topics found": "Keine Themen gefunden", "Press Enter to search in site.": "Drücken Sie die Eingabetaste, um in der Site zu suchen.", + "Search result of ": "Search result of ", "loading...": "lade..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", die Anzahl der Beiträge ist", "Add new tab": "Neuen Tab hinzufügen", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Tab erfolgreich erstellen", "Create": "Anlegen", "Created time": "Erstellte Zeit", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Übersetzerinformationen erfolgreich hinzufügen", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Löschen", "Delete translator success": "Übersetzer erfolgreich gelöscht", "Disable": "Deaktivieren", diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index 60976c4..676311b 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Created time", "Delete moderator success": "Delete moderator success", "Description": "Description", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "Header image", "Hot": "Hot", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Add new plane", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Background color", "Change image": "Change image", "Creat plane success": "Creat plane success", @@ -446,6 +449,7 @@ "Click here to search in ": "Click here to search in ", "No topics found": "No topics found", "Press Enter to search in site.": "Press Enter to search in site.", + "Search result of ": "Search result of ", "loading...": "loading..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", the number of posts is", "Add new tab": "Add new tab", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Creat tab success", "Create": "Create", "Created time": "Created time", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Add translator information success", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Delete", "Delete translator success": "Delete translator success", "Disable": "Disable", diff --git a/web/src/locales/fr/data.json b/web/src/locales/fr/data.json index 70d43c0..af89570 100644 --- a/web/src/locales/fr/data.json +++ b/web/src/locales/fr/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Date de création", "Delete moderator success": "Suppression du modérateur réussie", "Description": "Libellé", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Cookie Google Group", "Header image": "Image de l'en-tête", "Hot": "Chaud", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Ajouter un nouveau plan", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Couleur d'arrière-plan", "Change image": "Changer l'image", "Creat plane success": "Plan de création réussi", @@ -446,6 +449,7 @@ "Click here to search in ": "Cliquez ici pour rechercher dans ", "No topics found": "Aucun sujet trouvé", "Press Enter to search in site.": "Appuyez sur Entrée pour rechercher dans le site.", + "Search result of ": "Search result of ", "loading...": "chargement en cours..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", le nombre de messages est", "Add new tab": "Ajouter un nouvel onglet", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Onglet créé avec succès", "Create": "Créer", "Created time": "Date de création", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Les informations du traducteur ont été ajoutées avec succès", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Supprimez", "Delete translator success": "Suppression du traducteur réussie", "Disable": "Désactiver", diff --git a/web/src/locales/ja/data.json b/web/src/locales/ja/data.json index 1abb3e5..7444358 100644 --- a/web/src/locales/ja/data.json +++ b/web/src/locales/ja/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "作成日時", "Delete moderator success": "モデレーターの削除に成功しました", "Description": "説明", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google グループのクッキー", "Header image": "ヘッダー画像", "Hot": "ホット", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "新しい平面を追加", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "背景色", "Change image": "画像の変更", "Creat plane success": "Creat plane success", @@ -446,6 +449,7 @@ "Click here to search in ": "ここをクリックして検索 ", "No topics found": "トピックが見つかりません", "Press Enter to search in site.": "Enterキーを押してサイト内を検索します。", + "Search result of ": "Search result of ", "loading...": "読み込み中..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": "、投稿の数は", "Add new tab": "新しいタブを追加", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "タブの作成に成功", "Create": "作成", "Created time": "作成日時", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "翻訳者情報の追加に成功しました", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "削除", "Delete translator success": "翻訳者を削除しました", "Disable": "無効", diff --git a/web/src/locales/kk/data.json b/web/src/locales/kk/data.json index ef9428e..44418a4 100644 --- a/web/src/locales/kk/data.json +++ b/web/src/locales/kk/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Жасалған уақыты", "Delete moderator success": "Модыратыр сәтті жойылды", "Description": "Сипаттама", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "Бас жақтың суреті", "Hot": "Ыстық", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Жаңа Plane қосу", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Артжағының түсі", "Change image": "Суретті ауыстыру", "Creat plane success": "Plane сәтті жасалды", @@ -446,6 +449,7 @@ "Click here to search in ": "Іздеу үшін осы жерді басыңыз ", "No topics found": "Топиктер табылмады", "Press Enter to search in site.": "Сайтта іздеу үшін Enter'ді басыныз.", + "Search result of ": "Search result of ", "loading...": "жүктелуде..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", посттар саны", "Add new tab": "Жаңа tab қосу", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Tab сәтті жасалды", "Create": "Жасау", "Created time": "Жасалған уақыты", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Аудармашы ақпаратын қосу сәтті аяқталды", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Жою", "Delete translator success": "Аудармашы сәтті жойылды", "Disable": "Өшіру", diff --git a/web/src/locales/ko/data.json b/web/src/locales/ko/data.json index 07e9bf1..6fba302 100644 --- a/web/src/locales/ko/data.json +++ b/web/src/locales/ko/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Created time", "Delete moderator success": "Delete moderator success", "Description": "Description", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "Header image", "Hot": "Hot", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Add new plane", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Background color", "Change image": "Change image", "Creat plane success": "Creat plane success", @@ -446,6 +449,7 @@ "Click here to search in ": "Click here to search in ", "No topics found": "No topics found", "Press Enter to search in site.": "Press Enter to search in site.", + "Search result of ": "Search result of ", "loading...": "loading..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", the number of posts is", "Add new tab": "Add new tab", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Creat tab success", "Create": "Create", "Created time": "Created time", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Add translator information success", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Delete", "Delete translator success": "Delete translator success", "Disable": "Disable", diff --git a/web/src/locales/ru/data.json b/web/src/locales/ru/data.json index af7d014..1bb4d1d 100644 --- a/web/src/locales/ru/data.json +++ b/web/src/locales/ru/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "Время создания", "Delete moderator success": "Успешное удаление модератора", "Description": "Описание", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Cookie группы Google", "Header image": "Изображение заголовка", "Hot": "Горячая", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "Добавить плоскость", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "Цвет фона", "Change image": "Изменить изображение", "Creat plane success": "Плоскость креата выполнена", @@ -446,6 +449,7 @@ "Click here to search in ": "Нажмите здесь для поиска в ", "No topics found": "Темы не найдены", "Press Enter to search in site.": "Нажмите Enter для поиска на сайте.", + "Search result of ": "Search result of ", "loading...": "загрузка..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ", количество сообщений", "Add new tab": "Добавить новую вкладку", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "Успешная вкладка Creat", "Create": "Создать", "Created time": "Время создания", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "Информация переводчика успешно добавлена", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "Удалить", "Delete translator success": "Переводчик успешно удален", "Disable": "Отключено", diff --git a/web/src/locales/zh-TW/data.json b/web/src/locales/zh-TW/data.json index 53d17e7..2ff45ef 100644 --- a/web/src/locales/zh-TW/data.json +++ b/web/src/locales/zh-TW/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "Details", + "Failed to log in": "Failed to log in", "Help": "Help", "Logged in successfully": "Logged in successfully", "Signing In Error": "Signing In Error", - "Signing in...": "Signing in...", - "Failed to log in": "Failed to log in", - "Signing in automatically...": "Signing in automatically..." + "Signing in automatically...": "Signing in automatically...", + "Signing in...": "Signing in..." }, "member": { "'s all created topics": "'s all created topics", @@ -315,6 +315,8 @@ "Created time": "創建時間", "Delete moderator success": "移除版主成功", "Description": "簡介", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "頭部圖片", "Hot": "熱度", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "新增位面", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "背景顏色", "Change image": "更換圖標", "Creat plane success": "創建位面成功", @@ -446,6 +449,7 @@ "Click here to search in ": "點擊此處跳轉搜索:", "No topics found": "沒有找到任何帖子", "Press Enter to search in site.": "按回車鍵以在站內搜索。", + "Search result of ": "Search result of ", "loading...": "加載中..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ",帖子個數為", "Add new tab": "新建類別", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "創建類別成功", "Create": "創建", "Created time": "創建時間", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "添加翻譯信息成功", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "刪除", "Delete translator success": "刪除翻譯平臺成功", "Disable": "禁用", diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index 94d34a2..e128c31 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -227,12 +227,12 @@ }, "login": { "Details": "详细信息", + "Failed to log in": "登录失败", "Help": "帮助", "Logged in successfully": "登录成功", "Signing In Error": "登录时遇到错误", - "Signing in...": "正在登录...", - "Failed to log in": "登录失败", - "Signing in automatically...": "正在自动登录..." + "Signing in automatically...": "正在自动登录...", + "Signing in...": "正在登录..." }, "member": { "'s all created topics": " 创建的主题", @@ -315,6 +315,8 @@ "Created time": "创建时间", "Delete moderator success": "移除版主成功", "Description": "简介", + "Gitter API Token": "Gitter API Token", + "Gitter Room URL": "Gitter Room URL", "Google Group Cookie": "Google Group Cookie", "Header image": "头部图片", "Hot": "热度", @@ -377,6 +379,7 @@ }, "plane": { "Add new plane": "新增位面", + "Are you sure to delete plane": "Are you sure to delete plane", "Background color": "背景颜色", "Change image": "更换图标", "Creat plane success": "创建位面成功", @@ -446,6 +449,7 @@ "Click here to search in ": "点击此处跳转搜索:", "No topics found": "没有找到任何帖子", "Press Enter to search in site.": "按回车键以在站内搜索。", + "Search result of ": "Search result of ", "loading...": "加载中..." }, "sensitive": { @@ -458,6 +462,7 @@ "tab": { ", the number of posts is": ",帖子个数为", "Add new tab": "新建类别", + "Are you sure to delete tab": "Are you sure to delete tab", "Creat tab success": "创建类别成功", "Create": "创建", "Created time": "创建时间", @@ -587,6 +592,7 @@ }, "translator": { "Add translator information success": "添加翻译信息成功", + "Are you sure to delete translator": "Are you sure to delete translator", "Delete": "删除", "Delete translator success": "删除翻译平台成功", "Disable": "禁用",