Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<q-page>
<div class="row q-pa-md flex-center window-width">
<q-card :style="this.$q.dark.isActive ?
'border-bottom: #C0FFEE 3px solid; max-width: 90%;' :
'border-bottom: #325358 3px solid; max-width: 90%;'"
>
<q-list bordered class="rounded-borders">
<q-item-label
header
:class="this.$q.platform.is.mobile ? 'text-weight-bolder text-h6' : 'text-weight-bolder text-h5'"
:style="this.$q.platform.is.mobile ? 'font-size: 18px;' : ''"
>
Curated list of plugins/addons for ServerPackCreator:
<q-btn
icon="info"
class="q-mr-xs right"
dense
flat
@click="viewInfo()">
</q-btn>
</q-item-label>
<q-separator/>
<q-item v-for="addon in addons" v-bind:key="addon" :class=
"this.$q.dark.isActive ?
(addon.index % 2 ? 'item-dark' : 'item-dark-alternative') :
(addon.index % 2 ? 'item' : 'item-alternative')"
>
<q-item-section top>
<q-item-label lines="1">
<span class="text-weight-bolder">[{{addon.owner}}/{{addon.name}}]</span>
<span class="text-grey-8"> - {{ addon.type }}</span>
<span class="text-grey-8"> - {{ addon.branch }}</span>
</q-item-label>
<q-item-label caption lines="10">
{{ addon.description }}
</q-item-label>
</q-item-section>
<q-item-section top side class="flex-center">
<div class="q-gutter-xs">
<q-btn size="lg" type="a" :href="addon.releasesLink" target="_blank" flat dense round icon="save" />

Griefed
committed
<q-btn size="lg" type="a" :href="addon.repositoryLink" target="_blank" flat dense round icon="open_in_new" />
</div>
</q-item-section>
<q-separator/>
</q-item>
</q-list>
</q-card>
</div>
</q-page>
</template>
<script>
import { defineComponent,ref } from "vue";
export default defineComponent({
name: "AddonIndex",
setup() {
return {
addons: {
serverpackcreatorexampleaddon: {
index: 1,
name: 'ServerPackCreatorExampleAddon',
owner: 'Griefed',
type: 'GitHub',
branch: 'main',
description: 'An example addon for ServerPackCreator for use in version 3.x.x.',
releasesLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon/releases/latest',

Griefed
committed
repositoryLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon'
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
},
serverpackcreatorexampleaddonalternativedeclaration: {
index: 2,
name: 'ServerPackCreatorExampleAddon',
owner: 'Griefed',
type: 'GitHub',
branch: 'alternativeExtensionDeclaration',
description: 'An example addon for ServerPackCreator for use in version 3.x.x. This example shows a different approach to the extension declaration and class structure.',
releasesLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon/releases/latest',
repositoryLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon/tree/alternativeExtensionDeclaration'
},
serverpackcreatorexampleaddontetris: {
index: 3,
name: 'ServerPackCreatorExampleAddon',
owner: 'Griefed',
type: 'GitHub',
branch: 'tetris',
description: 'An example addon for ServerPackCreator for use in version 3.x.x. This plugin adds a single simple tab containing but a single button. "Press Play On Tape". Upon pressing said button, you can play Tetris in a new windows! Playing Tetris whilst a server pack is generating? Yes please!',
releasesLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon/releases/latest',
repositoryLink: 'https://github.com/Griefed/ServerPackCreatorExampleAddon/tree/tetris'
},
}
}
},
methods: {
viewInfo() {
this.$q.notify({
timeout: 0,
icon: 'info',
color: 'primary',
position: 'center',
multiLine: true,
html: true,
message:
'<span style="font-size: 20px;"><b>Why:</b></span>' +
'<br><br>' +
'<p>' +
'There are things which people want to do with their server packs which could most certainly be automated. Some of those' +
'things so special, or maybe out of place, that they would not warrant a separate feature for ServerPackCreator itself.' +
'It may also be that it is such a niche feature, that I either don\'t have the time to code it in, or simply don\'t want to.' +
'Maybe it doesn\'t fit into the overall design of ServerPackCreator, too. Who knows, it could be any of those reasons or another.' +
'</p>' +
'<p>' +
'<b>Hence, the addon functionality!</b>' +
'</p>' +
'<p>' +
'This allows people to write their own addons to expand the functionality of ServerPackCreator with their own features as' +
'they see fit or want.' +
'</p>' +
'<p>For documentation about Pf4j, visit the [Pf4j documentation](https://pf4j.org/)</p>' +
'<span style="font-size: 20px;"><b>Adding your own addon/plugin:</b></span>' +
'<br><br>' +
'If you have written your own addon or plugin for ServerPackCreator and you would like to see it added here, please open an issue over at ServerPackCreatoron GitHub, using the Documentation template.' +
'<br>' +
'For an addon to be accepted, you must at least provide:<br>' +
'<ul>' +
'<li>The name of the repository, and therefore the addon.</li>' +
'<li>The owner of the repository, and therefore the addon.</li>' +
'<li>The branch of the repository where the main code resides in.</li>' +
'<li>A description of the plugin or addon.</li>' +
'</ul>' +
'A curated list of officially acknowledged addons/plugins can be found at <b><a style="color: #c0ffee" href="https://addons.griefed.de">addons.griefed.de</a></b> (redirects to <b><a style="color: #c0ffee" href="https://griefed.github.io/ServerPackCreator-Addons-Overview/#/">GitHub Pages</a></b>)' +
'<br>' +
'Some examples for potential addons can be found <b><a style="color: #c0ffee" href="https://github.com/Griefed/ServerPackCreator/discussions/201">in this discussion thread</a></b>.' +
'<br>' +
'Some excerpts:' +
'<ul>' +
'<li>1. Changelog generator, by @TheButterbrotMan at [Feature request]: Changelog generator #198</li>' +
'<ul><li>A changelog generator that checks the differences to the previous version and generates a changelog.</li></ul>' +
'<li>2. Bundle Adoptium Java with server packs, by @kreezxil at [Feature request]: Bundle Adoptium Java #199</li>' +
'<ul><li>Because modpacks need one of the either Java 8, 16, or 17, it would be nice to have the corresponding <b><a style="color: #c0ffee" href="https://adoptium.net">Adoptium JDK/JRE</a></b> prebundled with the server pack.</li></ul>' +
'<li>3. Automatic setup of a server pack for [BlueMap](https://www.curseforge.com/minecraft/mc-mods/bluemap)</li>' +
'<ul><li>Check all mods in the specified modpacks mods-directory for textures, and if any are found, add the mod to' +
'BlueMap\'s resourcepack folder `config/bluemap/resourcepacks`, install BlueMap for the specified Minecraft and Forge/Fabric' +
'version and voilà!</li></ul>' +
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
'</ul>',
actions: [
{ label: 'OK', color: 'white'}
]
})
}
}
});
</script>
<style>
.right {
position: absolute;
right: 0px;
padding-right: 10px;
}
.item {
background-color: whitesmoke;
}
.item-alternative {
background-color: white;
}
.item-dark {
background-color: black;
}
.item-dark-alternative {
background-color: #1D1D1D;
}
</style>