Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion service/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@

// 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,
}

Check failure on line 55 in service/oss.go

View workflow job for this annotation

GitHub Actions / Go-Linter

File is not properly formatted (gofumpt)

Check failure on line 55 in service/oss.go

View workflow job for this annotation

GitHub Actions / Go-Linter

File is not properly formatted (gofumpt)

Check failure on line 55 in service/oss.go

View workflow job for this annotation

GitHub Actions / Go-Linter

File is not properly formatted (gofumpt)
affected, err := casdoorsdk.DeleteResource(resource)
if err != nil {
panic(err)
}
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/de/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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ß",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/en/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/fr/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/ja/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": "ホット",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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": "作成日時",
Expand Down Expand Up @@ -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": "無効",
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/kk/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": "Ыстық",
Expand Down Expand Up @@ -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 сәтті жасалды",
Expand Down Expand Up @@ -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": {
Expand All @@ -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": "Жасалған уақыты",
Expand Down Expand Up @@ -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": "Өшіру",
Expand Down
12 changes: 9 additions & 3 deletions web/src/locales/ko/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading
Loading