|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
|
import { addSelectOnFocusBehaviour } from '../lib/utils/common_utils';
|
|
import { addSelectOnFocusBehaviour } from '../lib/utils/common_utils';
|
|
|
import { slugifyWithHyphens } from '../lib/utils/text_utility';
|
|
import { slugifyWithHyphens } from '../lib/utils/text_utility';
|
|
|
|
import { s__ } from '~/locale';
|
|
|
|
|
|
|
|
let hasUserDefinedProjectPath = false;
|
|
let hasUserDefinedProjectPath = false;
|
|
|
|
|
|
| ... | @@ -114,71 +115,71 @@ const bindEvents = () => { |
... | @@ -114,71 +115,71 @@ const bindEvents = () => { |
|
|
const value = $(this).val();
|
|
const value = $(this).val();
|
|
|
const templates = {
|
|
const templates = {
|
|
|
rails: {
|
|
rails: {
|
|
|
text: 'Ruby on Rails',
|
|
text: s__('ProjectTemplates|Ruby on Rails'),
|
|
|
icon: '.template-option .icon-rails',
|
|
icon: '.template-option .icon-rails',
|
|
|
},
|
|
},
|
|
|
express: {
|
|
express: {
|
|
|
text: 'NodeJS Express',
|
|
text: s__('ProjectTemplates|NodeJS Express'),
|
|
|
icon: '.template-option .icon-express',
|
|
icon: '.template-option .icon-express',
|
|
|
},
|
|
},
|
|
|
spring: {
|
|
spring: {
|
|
|
text: 'Spring',
|
|
text: s__('ProjectTemplates|Spring'),
|
|
|
icon: '.template-option .icon-spring',
|
|
icon: '.template-option .icon-spring',
|
|
|
},
|
|
},
|
|
|
iosswift: {
|
|
iosswift: {
|
|
|
text: 'iOS (Swift)',
|
|
text: s__('ProjectTemplates|iOS (Swift)'),
|
|
|
icon: '.template-option svg.icon-gitlab',
|
|
icon: '.template-option svg.icon-gitlab',
|
|
|
},
|
|
},
|
|
|
dotnetcore: {
|
|
dotnetcore: {
|
|
|
text: '.NET Core',
|
|
text: s__('ProjectTemplates|.NET Core'),
|
|
|
icon: '.template-option .icon-dotnet',
|
|
icon: '.template-option .icon-dotnet',
|
|
|
},
|
|
},
|
|
|
android: {
|
|
android: {
|
|
|
text: 'Android',
|
|
text: s__('ProjectTemplates|Android'),
|
|
|
icon: '.template-option svg.icon-android',
|
|
icon: '.template-option svg.icon-android',
|
|
|
},
|
|
},
|
|
|
gomicro: {
|
|
gomicro: {
|
|
|
text: 'Go Micro',
|
|
text: s__('ProjectTemplates|Go Micro'),
|
|
|
icon: '.template-option .icon-gomicro',
|
|
icon: '.template-option .icon-gomicro',
|
|
|
},
|
|
},
|
|
|
hugo: {
|
|
hugo: {
|
|
|
text: 'Pages/Hugo',
|
|
text: s__('ProjectTemplates|Pages/Hugo'),
|
|
|
icon: '.template-option .icon-hugo',
|
|
icon: '.template-option .icon-hugo',
|
|
|
},
|
|
},
|
|
|
jekyll: {
|
|
jekyll: {
|
|
|
text: 'Pages/Jekyll',
|
|
text: s__('ProjectTemplates|Pages/Jekyll'),
|
|
|
icon: '.template-option .icon-jekyll',
|
|
icon: '.template-option .icon-jekyll',
|
|
|
},
|
|
},
|
|
|
plainhtml: {
|
|
plainhtml: {
|
|
|
text: 'Pages/Plain HTML',
|
|
text: s__('ProjectTemplates|Pages/Plain HTML'),
|
|
|
icon: '.template-option .icon-plainhtml',
|
|
icon: '.template-option .icon-plainhtml',
|
|
|
},
|
|
},
|
|
|
gitbook: {
|
|
gitbook: {
|
|
|
text: 'Pages/GitBook',
|
|
text: s__('ProjectTemplates|Pages/GitBook'),
|
|
|
icon: '.template-option .icon-gitbook',
|
|
icon: '.template-option .icon-gitbook',
|
|
|
},
|
|
},
|
|
|
hexo: {
|
|
hexo: {
|
|
|
text: 'Pages/Hexo',
|
|
text: s__('ProjectTemplates|Pages/Hexo'),
|
|
|
icon: '.template-option .icon-hexo',
|
|
icon: '.template-option .icon-hexo',
|
|
|
},
|
|
},
|
|
|
nfhugo: {
|
|
nfhugo: {
|
|
|
text: 'Netlify/Hugo',
|
|
text: s__('ProjectTemplates|Netlify/Hugo'),
|
|
|
icon: '.template-option .icon-netlify',
|
|
icon: '.template-option .icon-netlify',
|
|
|
},
|
|
},
|
|
|
nfjekyll: {
|
|
nfjekyll: {
|
|
|
text: 'Netlify/Jekyll',
|
|
text: s__('ProjectTemplates|Netlify/Jekyll'),
|
|
|
icon: '.template-option .icon-netlify',
|
|
icon: '.template-option .icon-netlify',
|
|
|
},
|
|
},
|
|
|
nfplainhtml: {
|
|
nfplainhtml: {
|
|
|
text: 'Netlify/Plain HTML',
|
|
text: s__('ProjectTemplates|Netlify/Plain HTML'),
|
|
|
icon: '.template-option .icon-netlify',
|
|
icon: '.template-option .icon-netlify',
|
|
|
},
|
|
},
|
|
|
nfgitbook: {
|
|
nfgitbook: {
|
|
|
text: 'Netlify/GitBook',
|
|
text: s__('ProjectTemplates|Netlify/GitBook'),
|
|
|
icon: '.template-option .icon-netlify',
|
|
icon: '.template-option .icon-netlify',
|
|
|
},
|
|
},
|
|
|
nfhexo: {
|
|
nfhexo: {
|
|
|
text: 'Netlify/Hexo',
|
|
text: s__('ProjectTemplates|Netlify/Hexo'),
|
|
|
icon: '.template-option .icon-netlify',
|
|
icon: '.template-option .icon-netlify',
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
| ... | |
... | |
| ... | | ... | |