-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
863e577
commit c6647ee
Showing
53 changed files
with
1,160 additions
and
1,124 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ory/types/maven/MavenRepositoryHelpers.ts → ...ory/types/maven/MavenRepositoryHelpers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
interface LocalStorageConfig{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import LocalStorageConfig from '@/components/nr/storage/local/LocalStorageConfig.vue' | ||
import UpdateLocalStorageConfig from '@/components/nr/storage/local/UpdateLocalStorageConfig.vue' | ||
|
||
interface StorageType { | ||
label: string | ||
value: string | ||
title: string | ||
description: string | ||
component: any | ||
updateComponent: any | ||
} | ||
export const storageTypes: Array<StorageType> = [ | ||
{ | ||
label: 'Local', | ||
value: 'Local', | ||
title: 'Local Storage Configuration', | ||
description: 'Local storage configuration allows you to store data on your local machine.', | ||
component: LocalStorageConfig, | ||
updateComponent: UpdateLocalStorageConfig | ||
} | ||
] | ||
|
||
export function getStorageType(value: string): StorageType | undefined { | ||
return storageTypes.find((type) => type.value === value) | ||
} | ||
|
||
export interface LocalConfig { | ||
path: string | ||
} | ||
export type StorageTypeConfig = { | ||
type: 'Local' | ||
settings: LocalConfig | ||
} | ||
export interface StorageItem { | ||
id: string | ||
name: string | ||
storage_type: string | ||
config: StorageTypeConfig | ||
active: boolean | ||
created_at: Date | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
<template> | ||
<main> | ||
<RepositoryList /> | ||
<div v-if="!error && repositories.length >= 1"> | ||
<RepositoryListInner :repositories="repositories" /> | ||
</div> | ||
</main> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import RepositoryList from '@/components/admin/repository/RepositoryList.vue' | ||
import StorageList from '@/components/storage/StorageList.vue' | ||
import http from '@/http' | ||
import { ref } from 'vue' | ||
import type { RepositoryWithStorageName } from '@/types/repository' | ||
import RepositoryListInner from '@/components/admin/repository/RepositoryListInner.vue' | ||
const repositories = ref<RepositoryWithStorageName[]>([]) | ||
const error = ref<string | null>(null) | ||
async function fetchRepositories() { | ||
await http | ||
.get<RepositoryWithStorageName[]>('/api/repository/list') | ||
.then((response) => { | ||
repositories.value = response.data | ||
}) | ||
.catch((error) => { | ||
console.error(error) | ||
error.value = 'Failed to fetch repositories' | ||
}) | ||
} | ||
fetchRepositories() | ||
</script> |
Oops, something went wrong.