Skip to content

Commit a91109a

Browse files
committed
Update StackTable
1 parent f63bc40 commit a91109a

File tree

2 files changed

+78
-56
lines changed

2 files changed

+78
-56
lines changed

.vitepress/theme/components/StackTable.vue

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@ const props = defineProps({
55
})
66
77
function getLink(type, repo) {
8-
const links = {
8+
return {
99
stars: `https://img.shields.io/github/stars/${repo}?style=${props.style}&label=%20&color=forestgreen`,
1010
forks: `https://img.shields.io/github/forks/${repo}?style=${props.style}&label=%20&color=blue`,
1111
last: `https://img.shields.io/github/last-commit/${repo}?display_timestamp=committer&style=${props.style}&label=%20`,
1212
language: `https://img.shields.io/github/languages/top/${repo}?style=${props.style}`,
13-
}
14-
return links[type]
13+
}[type]
14+
}
15+
16+
function getType(type) {
17+
return (
18+
{
19+
0: '',
20+
1: '📋',
21+
2: '🐳',
22+
3: '',
23+
}[Number(type)] ?? ''
24+
)
1525
}
1626
</script>
1727
@@ -20,16 +30,18 @@ function getLink(type, repo) {
2030
<thead>
2131
<tr>
2232
<th>Repositories - {{ props.repos.length }}</th>
33+
<th class="center" style="padding: 0">▶️</th>
2334
<th class="center" style="padding: 0">⭐🍴</th>
2435
<th class="center">Updated</th>
2536
<th>Language</th>
2637
</tr>
2738
</thead>
2839
<tbody>
29-
<tr v-for="repo in props.repos" :key="repo">
40+
<tr v-for="[repo, type] in props.repos" :key="repo">
3041
<td class="repository">
3142
<a :href="`https://github.com/${repo}`" :title="repo" target="_blank" rel="noopener">{{ repo }}</a>
3243
</td>
44+
<td colspan="center">{{ getType(type) }}</td>
3345
<td class="center">
3446
<a :href="`https://github.com/${repo}/stargazers`" target="_blank" rel="noopener">
3547
<img alt="S" :src="getLink('stars', repo)" style="margin-right: 4px"

docs/guides/resources.md

Lines changed: 62 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,62 +26,72 @@ and all [feature requests](https://github.com/cssnr/stack-deploy-action/discussi
2626
None of these actions have been tested. This is an exhaustive list of published actions.
2727
:::
2828

29+
::: details ▶️ Supported Types
30+
31+
✅ - Swarm and Compose
32+
🐳 - Swarm Only
33+
📋 - Compose Only
34+
❌ - Only Run, Pull, etc.
35+
36+
:::
37+
38+
<!-- Data Structure (type: 0-3): ['user/repo', 0] -->
2939
<!-- Sort Order - 1: Stars - 2: Forks - 3: Updated -->
3040

3141
<StackTable
3242
:repos="[
33-
'cssnr/stack-deploy-action',
34-
'hoverkraft-tech/compose-action',
35-
'wshihadeh/docker-deployment-action',
36-
'TapTap21/docker-remote-deployment-action',
37-
'kitconcept/docker-stack-deploy',
38-
'serversideup/github-action-docker-swarm-deploy',
39-
'matchory/docker-swarm-deployment-action',
40-
'chaplyk/docker-compose-remote-action',
41-
'matiasnu/github-action-ssh-docker-compose',
42-
'astappiev/docker-compose-remote-action',
43-
'sulthonzh/docker-remote-deployment-action',
44-
'masterjanic/docker-compose-ssh-deployment',
45-
'littleboyfury/ssh-docker-run',
46-
'djnotes/github-action-ssh-docker-compose',
47-
'hasnat/deploy-docker-compose',
48-
'shockhs/docker-stack-deploy',
49-
'alcharra/docker-deploy-action-go',
50-
'erwanclx/docker-remote-deployment-action',
51-
'open-fringecore/docker-ssh-push',
52-
'humbertocrispim/ssh-docker-compose-action',
53-
'jacobjove/deploy-docker-ssh',
54-
'5eqn/docker-compose-remote-action',
55-
'kamina7/docker-swarm-ssh-deploy-action',
56-
'nightstory/setup-docker-remote',
57-
'simbamarufu1/docker-swarm-deploy-action',
58-
'Falling42/ssh-deploy',
59-
'thomasvjoseph/ssh-docker',
60-
'Vrashabh-Sontakke/docker-stack-deploy-action',
61-
'prvious/ssh-docker',
62-
'sidikfaha/deploy-docker',
63-
'gronitab/docker-swarm-deploy-action',
64-
'38ri581oq480/docker-run-command-remote-host-action',
65-
'keatonLiu/docker-compose-remote-action',
66-
'mannes/docker-remote-deployment-action',
67-
'goldor8/custom-docker-compose-ssh-deployment',
68-
'manugame/custom-docker-compose-ssh-deployment',
69-
'hamidfzm/docker-remote-deployment-action',
70-
'revelhome/stack-deploy-action',
71-
'jrm402/docker-stack-deploy',
72-
'sklimaszewski/dokploy-deploy-image-action',
73-
'dombyte/docker-deploy',
74-
'modcraftmc/custom-docker-compose-ssh-deployment',
75-
'anilrajrimal1/ecr-docker-ssh-deployer',
76-
'tristiisch/docker-stack-deployment',
77-
'hantastic3/ssh-deploy-action',
78-
'sovarto/deploy-swarm-service',
79-
'leonidgrishenkov/docker-stack-deploy',
80-
'xfathurrahman/tailscale-stack-deploy-action',
81-
'harrisonratcliffe/github-action-docker-swarm-deploy',
82-
'qdrx/stack-deploy-action',
83-
'deriannavy/docker-context-action',
84-
'Autom3/docker-deployment-action',
43+
['cssnr/stack-deploy-action', 3],
44+
['hoverkraft-tech/compose-action', 1],
45+
['wshihadeh/docker-deployment-action', 3],
46+
['TapTap21/docker-remote-deployment-action', 3],
47+
['kitconcept/docker-stack-deploy', 2],
48+
['serversideup/github-action-docker-swarm-deploy', 2],
49+
['matchory/docker-swarm-deployment-action', 2],
50+
['chaplyk/docker-compose-remote-action', 1],
51+
['matiasnu/github-action-ssh-docker-compose', 1],
52+
['astappiev/docker-compose-remote-action', 1],
53+
['sulthonzh/docker-remote-deployment-action', 3],
54+
['masterjanic/docker-compose-ssh-deployment', 1],
55+
['littleboyfury/ssh-docker-run', 0],
56+
['djnotes/github-action-ssh-docker-compose', 1],
57+
['hasnat/deploy-docker-compose', 1],
58+
['shockhs/docker-stack-deploy', 2],
59+
['alcharra/docker-deploy-action-go', 3],
60+
['erwanclx/docker-remote-deployment-action', 3],
61+
['open-fringecore/docker-ssh-push', 0],
62+
['humbertocrispim/ssh-docker-compose-action', 1],
63+
['jacobjove/deploy-docker-ssh', 3],
64+
['5eqn/docker-compose-remote-action', 1],
65+
['kamina7/docker-swarm-ssh-deploy-action', 2],
66+
['nightstory/setup-docker-remote'],
67+
['simbamarufu1/docker-swarm-deploy-action'],
68+
['Falling42/ssh-deploy'],
69+
['thomasvjoseph/ssh-docker'],
70+
['Vrashabh-Sontakke/docker-stack-deploy-action'],
71+
['prvious/ssh-docker'],
72+
['sidikfaha/deploy-docker'],
73+
['gronitab/docker-swarm-deploy-action'],
74+
['38ri581oq480/docker-run-command-remote-host-action'],
75+
['keatonLiu/docker-compose-remote-action'],
76+
['mannes/docker-remote-deployment-action'],
77+
['goldor8/custom-docker-compose-ssh-deployment'],
78+
['manugame/custom-docker-compose-ssh-deployment'],
79+
['hamidfzm/docker-remote-deployment-action'],
80+
['revelhome/stack-deploy-action'],
81+
['jrm402/docker-stack-deploy'],
82+
['sklimaszewski/dokploy-deploy-image-action'],
83+
['dombyte/docker-deploy'],
84+
['modcraftmc/custom-docker-compose-ssh-deployment'],
85+
['anilrajrimal1/ecr-docker-ssh-deployer'],
86+
['tristiisch/docker-stack-deployment'],
87+
['hantastic3/ssh-deploy-action'],
88+
['sovarto/deploy-swarm-service'],
89+
['leonidgrishenkov/docker-stack-deploy'],
90+
['xfathurrahman/tailscale-stack-deploy-action'],
91+
['harrisonratcliffe/github-action-docker-swarm-deploy'],
92+
['qdrx/stack-deploy-action'],
93+
['deriannavy/docker-context-action'],
94+
['Autom3/docker-deployment-action'],
8595
]"
8696
</StackTable>
8797

0 commit comments

Comments
 (0)