Compare commits
No commits in common. "73c9315fbf37fe4e8c899e4afb4dfc3d346b54be" and "9fc70cfe572463f713015ea1328530ea513914ff" have entirely different histories.
73c9315fbf
...
9fc70cfe57
17 changed files with 80 additions and 157 deletions
|
@ -1,12 +1,3 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import "git.zervo.org/zervo/alpacca/app"
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
package alpacca
|
||||
|
||||
import "embed"
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
<!--
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
<!--
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
-->
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-main>
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
<!--
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
-->
|
||||
|
||||
<template>
|
||||
<v-container class="fill-height" max-width="900">
|
||||
<div>
|
||||
|
|
35
src/web/src/components/README.md
Normal file
35
src/web/src/components/README.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Components
|
||||
|
||||
Vue template files in this folder are automatically imported.
|
||||
|
||||
## 🚀 Usage
|
||||
|
||||
Importing is handled by [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components). This plugin automatically imports `.vue` files created in the `src/components` directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.
|
||||
|
||||
The following example assumes a component located at `src/components/MyComponent.vue`:
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<div>
|
||||
<MyComponent />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
//
|
||||
</script>
|
||||
```
|
||||
|
||||
When your template is rendered, the component's import will automatically be inlined, which renders to this:
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<div>
|
||||
<MyComponent />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import MyComponent from '@/components/MyComponent.vue'
|
||||
</script>
|
||||
```
|
|
@ -1,16 +0,0 @@
|
|||
<!--
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
-->
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-main>
|
||||
<slot />
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
|
@ -1,13 +1,8 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* main.ts: Bootstraps Vuetify and other plugins then mounts the App */
|
||||
/**
|
||||
* main.ts
|
||||
*
|
||||
* Bootstraps Vuetify and other plugins then mounts the App`
|
||||
*/
|
||||
|
||||
// Composables
|
||||
import { createApp } from 'vue'
|
||||
|
|
3
src/web/src/plugins/README.md
Normal file
3
src/web/src/plugins/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Plugins
|
||||
|
||||
Plugins are a way to extend the functionality of your Vue application. Use this folder for registering plugins that you want to use globally.
|
|
@ -1,13 +1,8 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* plugins/index.ts: Registers Vue plugins */
|
||||
/**
|
||||
* plugins/index.ts
|
||||
*
|
||||
* Automatically included in `./src/main.ts`
|
||||
*/
|
||||
|
||||
// Types
|
||||
import type { App } from 'vue'
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* plugins/vuetify.ts: Plugin initializer for vuetify */
|
||||
/**
|
||||
* plugins/vuetify.ts
|
||||
*
|
||||
* Framework documentation: https://vuetifyjs.com`
|
||||
*/
|
||||
|
||||
// Composables
|
||||
import { createVuetify } from 'vuetify'
|
||||
|
|
|
@ -1,20 +1,8 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* router/index.ts: Registers the Vue router and routes */
|
||||
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Index from '@/views/Index.vue'
|
||||
import { withLayout } from './layoutWrapper'
|
||||
|
||||
const routes = [
|
||||
{ path: '/', component: withLayout(Index) },
|
||||
{ path: '/', component: Index },
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* router/layoutWrapper.ts: Simple layout implementation that wraps views in layouts */
|
||||
|
||||
import { defineComponent, h } from 'vue'
|
||||
import DefaultLayout from '@/layouts/DefaultLayout.vue'
|
||||
|
||||
export function withLayout (pageComponent: any, layoutComponent: any = DefaultLayout) {
|
||||
return defineComponent({
|
||||
name: 'WrappedWithLayout',
|
||||
render () {
|
||||
return h(layoutComponent, {}, {
|
||||
default: () => h(pageComponent),
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
23
src/web/src/typed-router.d.ts
vendored
Normal file
23
src/web/src/typed-router.d.ts
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-router. ‼️ DO NOT MODIFY THIS FILE ‼️
|
||||
// It's recommended to commit this file.
|
||||
// Make sure to add this file to your tsconfig.json file as an "includes" or "files" entry.
|
||||
|
||||
declare module 'vue-router/auto-routes' {
|
||||
import type {
|
||||
RouteRecordInfo,
|
||||
ParamValue,
|
||||
ParamValueOneOrMore,
|
||||
ParamValueZeroOrMore,
|
||||
ParamValueZeroOrOne,
|
||||
} from 'vue-router'
|
||||
|
||||
/**
|
||||
* Route name map generated by unplugin-vue-router
|
||||
*/
|
||||
export interface RouteNamedMap {
|
||||
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
|
||||
}
|
||||
}
|
|
@ -1,12 +1,3 @@
|
|||
<!--
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
-->
|
||||
|
||||
<template>
|
||||
<HelloWorld />
|
||||
</template>
|
||||
|
|
|
@ -1,14 +1,3 @@
|
|||
/*
|
||||
Alpacca: The modern package repository hosting platform.
|
||||
Copyright (C) 2025, Zervó Zadachin
|
||||
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
The full copyright notice can be found at https://git.zervo.org/zervo/Alpacca/src/branch/main/COPYRIGHT.
|
||||
*/
|
||||
|
||||
/* vite.config.ts: Vite configuration */
|
||||
|
||||
/* eslint-disable perfectionist/sort-imports */
|
||||
// Plugins
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
|
@ -52,6 +41,9 @@ export default defineConfig({
|
|||
exclude: [
|
||||
'vuetify',
|
||||
'vue-router',
|
||||
'unplugin-vue-router/runtime',
|
||||
'unplugin-vue-router/data-loaders',
|
||||
'unplugin-vue-router/data-loaders/basic',
|
||||
],
|
||||
},
|
||||
define: { 'process.env': {} },
|
||||
|
|
Loading…
Add table
Reference in a new issue