Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
17998de5
Commit
17998de5
authored
Apr 03, 2020
by
manojmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move template data to CE/EE specific folders
This change moves template data to CE/EE specific folders
parent
5f6137bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
88 deletions
+96
-88
app/assets/javascripts/projects/default_project_templates.js
app/assets/javascripts/projects/default_project_templates.js
+84
-0
app/assets/javascripts/projects/project_new.js
app/assets/javascripts/projects/project_new.js
+2
-88
ee/app/assets/javascripts/projects/default_project_templates.js
.../assets/javascripts/projects/default_project_templates.js
+10
-0
No files found.
app/assets/javascripts/projects/default_project_templates.js
0 → 100644
View file @
17998de5
import
{
s__
}
from
'
~/locale
'
;
export
default
{
rails
:
{
text
:
s__
(
'
ProjectTemplates|Ruby on Rails
'
),
icon
:
'
.template-option .icon-rails
'
,
},
express
:
{
text
:
s__
(
'
ProjectTemplates|NodeJS Express
'
),
icon
:
'
.template-option .icon-express
'
,
},
spring
:
{
text
:
s__
(
'
ProjectTemplates|Spring
'
),
icon
:
'
.template-option .icon-spring
'
,
},
iosswift
:
{
text
:
s__
(
'
ProjectTemplates|iOS (Swift)
'
),
icon
:
'
.template-option .icon-iosswift
'
,
},
dotnetcore
:
{
text
:
s__
(
'
ProjectTemplates|.NET Core
'
),
icon
:
'
.template-option .icon-dotnetcore
'
,
},
android
:
{
text
:
s__
(
'
ProjectTemplates|Android
'
),
icon
:
'
.template-option .icon-android
'
,
},
gomicro
:
{
text
:
s__
(
'
ProjectTemplates|Go Micro
'
),
icon
:
'
.template-option .icon-gomicro
'
,
},
gatsby
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Gatsby
'
),
icon
:
'
.template-option .icon-gatsby
'
,
},
hugo
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Hugo
'
),
icon
:
'
.template-option .icon-hugo
'
,
},
jekyll
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Jekyll
'
),
icon
:
'
.template-option .icon-jekyll
'
,
},
plainhtml
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Plain HTML
'
),
icon
:
'
.template-option .icon-plainhtml
'
,
},
gitbook
:
{
text
:
s__
(
'
ProjectTemplates|Pages/GitBook
'
),
icon
:
'
.template-option .icon-gitbook
'
,
},
hexo
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Hexo
'
),
icon
:
'
.template-option .icon-hexo
'
,
},
nfhugo
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Hugo
'
),
icon
:
'
.template-option .icon-nfhugo
'
,
},
nfjekyll
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Jekyll
'
),
icon
:
'
.template-option .icon-nfjekyll
'
,
},
nfplainhtml
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Plain HTML
'
),
icon
:
'
.template-option .icon-nfplainhtml
'
,
},
nfgitbook
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/GitBook
'
),
icon
:
'
.template-option .icon-nfgitbook
'
,
},
nfhexo
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Hexo
'
),
icon
:
'
.template-option .icon-nfhexo
'
,
},
salesforcedx
:
{
text
:
s__
(
'
ProjectTemplates|SalesforceDX
'
),
icon
:
'
.template-option .icon-salesforcedx
'
,
},
serverless_framework
:
{
text
:
s__
(
'
ProjectTemplates|Serverless Framework/JS
'
),
icon
:
'
.template-option .icon-serverless_framework
'
,
},
};
app/assets/javascripts/projects/project_new.js
View file @
17998de5
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
{
addSelectOnFocusBehaviour
}
from
'
../lib/utils/common_utils
'
;
import
{
addSelectOnFocusBehaviour
}
from
'
../lib/utils/common_utils
'
;
import
{
convertToTitleCase
,
humanize
,
slugify
}
from
'
../lib/utils/text_utility
'
;
import
{
convertToTitleCase
,
humanize
,
slugify
}
from
'
../lib/utils/text_utility
'
;
import
{
s__
}
from
'
~/locale
'
;
import
DEFAULT_PROJECT_TEMPLATES
from
'
ee_else_ce/projects/default_project_templates
'
;
let
hasUserDefinedProjectPath
=
false
;
let
hasUserDefinedProjectPath
=
false
;
let
hasUserDefinedProjectName
=
false
;
let
hasUserDefinedProjectName
=
false
;
...
@@ -140,94 +140,8 @@ const bindEvents = () => {
...
@@ -140,94 +140,8 @@ const bindEvents = () => {
$projectFieldsForm
.
addClass
(
'
selected
'
);
$projectFieldsForm
.
addClass
(
'
selected
'
);
$selectedIcon
.
empty
();
$selectedIcon
.
empty
();
const
value
=
$
(
this
).
val
();
const
value
=
$
(
this
).
val
();
const
templates
=
{
rails
:
{
text
:
s__
(
'
ProjectTemplates|Ruby on Rails
'
),
icon
:
'
.template-option .icon-rails
'
,
},
express
:
{
text
:
s__
(
'
ProjectTemplates|NodeJS Express
'
),
icon
:
'
.template-option .icon-express
'
,
},
spring
:
{
text
:
s__
(
'
ProjectTemplates|Spring
'
),
icon
:
'
.template-option .icon-spring
'
,
},
iosswift
:
{
text
:
s__
(
'
ProjectTemplates|iOS (Swift)
'
),
icon
:
'
.template-option .icon-iosswift
'
,
},
dotnetcore
:
{
text
:
s__
(
'
ProjectTemplates|.NET Core
'
),
icon
:
'
.template-option .icon-dotnetcore
'
,
},
android
:
{
text
:
s__
(
'
ProjectTemplates|Android
'
),
icon
:
'
.template-option .icon-android
'
,
},
gomicro
:
{
text
:
s__
(
'
ProjectTemplates|Go Micro
'
),
icon
:
'
.template-option .icon-gomicro
'
,
},
gatsby
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Gatsby
'
),
icon
:
'
.template-option .icon-gatsby
'
,
},
hugo
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Hugo
'
),
icon
:
'
.template-option .icon-hugo
'
,
},
jekyll
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Jekyll
'
),
icon
:
'
.template-option .icon-jekyll
'
,
},
plainhtml
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Plain HTML
'
),
icon
:
'
.template-option .icon-plainhtml
'
,
},
gitbook
:
{
text
:
s__
(
'
ProjectTemplates|Pages/GitBook
'
),
icon
:
'
.template-option .icon-gitbook
'
,
},
hexo
:
{
text
:
s__
(
'
ProjectTemplates|Pages/Hexo
'
),
icon
:
'
.template-option .icon-hexo
'
,
},
nfhugo
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Hugo
'
),
icon
:
'
.template-option .icon-nfhugo
'
,
},
nfjekyll
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Jekyll
'
),
icon
:
'
.template-option .icon-nfjekyll
'
,
},
nfplainhtml
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Plain HTML
'
),
icon
:
'
.template-option .icon-nfplainhtml
'
,
},
nfgitbook
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/GitBook
'
),
icon
:
'
.template-option .icon-nfgitbook
'
,
},
nfhexo
:
{
text
:
s__
(
'
ProjectTemplates|Netlify/Hexo
'
),
icon
:
'
.template-option .icon-nfhexo
'
,
},
salesforcedx
:
{
text
:
s__
(
'
ProjectTemplates|SalesforceDX
'
),
icon
:
'
.template-option .icon-salesforcedx
'
,
},
serverless_framework
:
{
text
:
s__
(
'
ProjectTemplates|Serverless Framework/JS
'
),
icon
:
'
.template-option .icon-serverless_framework
'
,
},
hipaa_audit_protocol
:
{
text
:
s__
(
'
ProjectTemplates|HIPAA Audit Protocol
'
),
icon
:
'
.template-option .icon-hipaa_audit_protocol
'
,
},
};
const
selectedTemplate
=
templates
[
value
];
const
selectedTemplate
=
DEFAULT_PROJECT_TEMPLATES
[
value
];
$selectedTemplateText
.
text
(
selectedTemplate
.
text
);
$selectedTemplateText
.
text
(
selectedTemplate
.
text
);
$
(
selectedTemplate
.
icon
)
$
(
selectedTemplate
.
icon
)
.
clone
()
.
clone
()
...
...
ee/app/assets/javascripts/projects/default_project_templates.js
0 → 100644
View file @
17998de5
import
{
s__
}
from
'
~/locale
'
;
import
CE_TEMPLATES
from
'
../../../../../app/assets/javascripts/projects/default_project_templates
'
;
export
default
{
...
CE_TEMPLATES
,
hipaa_audit_protocol
:
{
text
:
s__
(
'
ProjectTemplates|HIPAA Audit Protocol
'
),
icon
:
'
.template-option .icon-hipaa_audit_protocol
'
,
},
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment