File tree Expand file tree Collapse file tree 6 files changed +57
-7
lines changed Expand file tree Collapse file tree 6 files changed +57
-7
lines changed Original file line number Diff line number Diff line change @@ -1802,10 +1802,13 @@ export default defineComponent({
1802
1802
(v : any ) => / ^ [a-zA-Z0-9 ][a-zA-Z0-9 _-] * $ / .test (v ) || ' Allowed characters : [a-zA-Z0-9_-]' ,
1803
1803
],
1804
1804
repositoryRules: [
1805
- // v => !!v || 'Repository is required',
1806
- (v : any ) => v .length <= 120 || ' Repository must be less than 120 characters' ,
1805
+ // (v: any) => !!v || 'Repository is required',
1806
+ // (v: any) => v.length <= 120 || 'Repository must be less than 120 characters',
1807
1807
// ((git|ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?
1808
- (v : any ) => / ((git| ssh| http(s)? )| (git@[\w. ] + ))(:(\/\/ )? )([\w. @:/\-~ ] + )(\. git)(\/ )? / .test (v ) || ' Format "owner/repository"' ,
1808
+ // ((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:\/\-~]+)(\.git)
1809
+ // (git@[\w.]+:\/\/)([\w.\/\-~]+)(\.git) // not working
1810
+ // ((git|ssh|http(s)?)|(git@[\w\.-]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?
1811
+ (v : any ) => / ^ ((git| ssh| http(s)? )| (git@[\w \. -] + ))(:(\/\/ )? )([\w \. @\:\/ \-~ ] + )(\. git)(\/ )? / .test (v ) || ' Format "[email protected] :organisation/repository.git"' ,
1809
1812
],
1810
1813
domainRules: [
1811
1814
(v : any ) => !! v || ' Domain is required' ,
Original file line number Diff line number Diff line change 54
54
55
55
<h4 class =" text-uppercase" >Github</h4 >
56
56
<v-row >
57
+ <v-col
58
+ cols =" 12"
59
+ md =" 3"
60
+ >
61
+ <v-text-field
62
+ v-model =" settings.secrets.GITHUB_BASEURL"
63
+ label =" github Base Url"
64
+ required
65
+ ></v-text-field >
66
+ </v-col >
57
67
<v-col
58
68
cols =" 12"
59
- md =" 6 "
69
+ md =" 3 "
60
70
>
61
71
<v-text-field
62
72
v-model =" settings.secrets.GITHUB_PERSONAL_ACCESS_TOKEN"
@@ -218,4 +228,4 @@ export default defineComponent({
218
228
}
219
229
})
220
230
221
- </script >
231
+ </script >
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ import FormNotifications from './form-notifications.vue'
65
65
66
66
// types & interfaces
67
67
export interface Secrets {
68
+ GITHUB_BASEURL: string ;
68
69
GITHUB_PERSONAL_ACCESS_TOKEN: string ;
69
70
GITEA_PERSONAL_ACCESS_TOKEN: string ;
70
71
GITEA_BASEURL: string ;
@@ -389,6 +390,7 @@ export default defineComponent({
389
390
show: false ,
390
391
settings: {
391
392
secrets: {
393
+ GITHUB_BASEURL: ' ' ,
392
394
GITHUB_PERSONAL_ACCESS_TOKEN: ' ' ,
393
395
GITEA_PERSONAL_ACCESS_TOKEN: ' ' ,
394
396
GITEA_BASEURL: ' ' ,
@@ -548,4 +550,4 @@ export default defineComponent({
548
550
</script >
549
551
550
552
<style lang="scss">
551
- </style >
553
+ </style >
Original file line number Diff line number Diff line change @@ -404,4 +404,4 @@ export class GithubApi extends Repo {
404
404
405
405
return ret ;
406
406
}
407
- }
407
+ }
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export class Settings {
64
64
}
65
65
66
66
config [ "secrets" ] = {
67
+ GITHUB_BASEURL : process . env . GITHUB_BASEURL || '' ,
67
68
GITHUB_PERSONAL_ACCESS_TOKEN : process . env . GITHUB_PERSONAL_ACCESS_TOKEN || '' ,
68
69
GITEA_PERSONAL_ACCESS_TOKEN : process . env . GITEA_PERSONAL_ACCESS_TOKEN || '' ,
69
70
GITEA_BASEURL : process . env . GITEA_BASEURL || '' ,
@@ -143,6 +144,7 @@ export class Settings {
143
144
process.env[key] = secrets[key]
144
145
}
145
146
*/
147
+ process . env . GITHUB_BASEURL = secrets . GITHUB_BASEURL
146
148
process . env . GITHUB_PERSONAL_ACCESS_TOKEN = secrets . GITHUB_PERSONAL_ACCESS_TOKEN
147
149
process . env . GITEA_PERSONAL_ACCESS_TOKEN = secrets . GITEA_PERSONAL_ACCESS_TOKEN
148
150
process . env . GITEA_BASEURL = secrets . GITEA_BASEURL
Original file line number Diff line number Diff line change
1
+ apiVersion : application.kubero.dev/v1alpha1
2
+ kind : KuberoApp
3
+ metadata :
4
+ name : trailbase
5
+ annotations :
6
+ kubero.dev/template.architecture : ' ["linux/amd64"]'
7
+ kubero.dev/template.description : " A fast, open-source application server with type-safe APIs, including an admin interface."
8
+ kubero.dev/template.icon : " https://avatars.githubusercontent.com/u/176172021"
9
+ kubero.dev/template.installation : " "
10
+ kubero.dev/template.links : " []"
11
+ kubero.dev/template.screenshots : " []"
12
+ kubero.dev/template.source : " https://github.com/trailbaseio/trailbase"
13
+ kubero.dev/template.categories : ' ["devtool", "utility"]'
14
+ kubero.dev/template.title : " Trailbase"
15
+ kubero.dev/template.website : " https://www.trailbase.io/"
16
+ labels :
17
+ manager : kubero
18
+ spec :
19
+ name : trailbase
20
+ deploymentstrategy : docker
21
+ envVars : []
22
+ extraVolumes : []
23
+ cronjobs : []
24
+ addons : []
25
+ web :
26
+ replicaCount : 1
27
+ worker :
28
+ replicaCount : 0
29
+ image :
30
+ containerPort : " 4000"
31
+ pullPolicy : Always
32
+ repository : trailbase/trailbase
33
+ tag : latest
You can’t perform that action at this time.
0 commit comments