Initial commit
This commit is contained in:
37
templates/config/frontend/env.js.erb
Normal file
37
templates/config/frontend/env.js.erb
Normal file
@@ -0,0 +1,37 @@
|
||||
window.env = {
|
||||
api: {
|
||||
authUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/dalan',
|
||||
tradeUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/dena',
|
||||
finexUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/finex',
|
||||
applogicUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/applogic',
|
||||
rangerUrl: '<%= ssl_helper('ws') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/ranger',
|
||||
},
|
||||
minutesUntilAutoLogout: '35',
|
||||
withCredentials: false,
|
||||
finex: <%= config['finex']['enabled'] %>,
|
||||
gaTrackerKey: '<%= @config['gaTrackerKey'] %>',
|
||||
ga4TrackerKey: '<%= @config['ga4TrackerKey'] %>',
|
||||
rangerReconnectPeriod: '1',
|
||||
msAlertDisplayTime: '5000',
|
||||
incrementalOrderBook: true,
|
||||
isResizable: false,
|
||||
isDraggable: false,
|
||||
languages: ['en', 'ru'],
|
||||
sessionCheckInterval: '15000',
|
||||
balancesFetchInterval: '3000',
|
||||
passwordEntropyStep: 14,
|
||||
showLanding: <%= @config['app']['show_landing'] %>,
|
||||
sentryEnabled: true,
|
||||
kycSteps: [
|
||||
'profile',
|
||||
'access_phone',
|
||||
'card',
|
||||
'iban',
|
||||
'poa',
|
||||
'telephone',
|
||||
'selfie',
|
||||
'owner_phone',
|
||||
'vip'
|
||||
],
|
||||
captchaLogin: <%= @config['captchaLogin'] %>
|
||||
};
|
||||
24
templates/config/frontend/shahoo.env.js.erb
Normal file
24
templates/config/frontend/shahoo.env.js.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
window.env = window.env || {};
|
||||
<% domain = @config['app']['domain'].to_s.strip %>
|
||||
<% brand_slug = domain.split('.').first.to_s.downcase %>
|
||||
<% brand_name = brand_slug.empty? ? @config['app']['name'].to_s : brand_slug.capitalize %>
|
||||
<% exchange_slug = brand_slug.empty? ? brand_name.downcase : brand_slug %>
|
||||
<% shahoo_host = @config['app']['shahoo_host'].to_s.strip %>
|
||||
<% shahoo_host = "#{@config['app']['shahoo_subdomain'] || 'shahoo'}.#{domain}" if shahoo_host.empty? %>
|
||||
window.env.app = {
|
||||
domain: '<%= domain %>',
|
||||
name: '<%= @config['app']['name'] %>',
|
||||
brandName: '<%= brand_name %>',
|
||||
exchangeSlug: '<%= exchange_slug %>',
|
||||
};
|
||||
window.env.api = {
|
||||
rangerUrl: '<%= ssl_helper('ws') %>://<%= shahoo_host %>/api/v2/ranger',
|
||||
};
|
||||
window.env.rangerEnabled = true;
|
||||
window.env.incrementalOrderBook = true;
|
||||
window.env.captcha = {
|
||||
captchaType: '<%= @config['captcha']['type'] %>',
|
||||
siteKey: '<%= @config['captcha']['siteKey'] %>',
|
||||
};
|
||||
window.env.captchaLogin = <%= @config['captchaLogin'] %>;
|
||||
window.env.showLanding = <%= !!@config.dig('app', 'show_landing') %>;
|
||||
73
templates/config/frontend/tower.js.erb
Normal file
73
templates/config/frontend/tower.js.erb
Normal file
@@ -0,0 +1,73 @@
|
||||
window.env = {
|
||||
applogicUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/applogic',
|
||||
authUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/dalan',
|
||||
peatioUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/dena',
|
||||
finexUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/finex',
|
||||
msAlertDisplayTime: '5000',
|
||||
tablePageLimit: 50,
|
||||
minutesUntilAutoLogout: '35',
|
||||
finex: <%= config['finex']['enabled'] %>,
|
||||
aml: false,
|
||||
captcha: {
|
||||
captchaType: '<%= @config['captcha']['type'] %>',
|
||||
siteKey: '<%= @config['captcha']['siteKey'] %>',
|
||||
},
|
||||
labelSwitcher: [
|
||||
{ name: 'email', label: [{ email: 'verified' }] },
|
||||
{ name: 'phone', label: [{ phone: 'verified' }] },
|
||||
{ name: 'identity', label: [{ profile: 'partial' }, { id_document: 'verified' }, { liveness: 'verified' }] },
|
||||
{ name: 'residence', label: [{ document: 'verified' }] },
|
||||
],
|
||||
plugins: [],
|
||||
roleTypes: [
|
||||
{
|
||||
value: 'Admin',
|
||||
key: 'admin',
|
||||
},
|
||||
{
|
||||
value: 'Member',
|
||||
key: 'member',
|
||||
},
|
||||
{
|
||||
value: 'Super Admin',
|
||||
key: 'superadmin',
|
||||
},
|
||||
{
|
||||
value: 'Accountant',
|
||||
key: 'accountant',
|
||||
},
|
||||
{
|
||||
value: 'Compliance',
|
||||
key: 'compliance',
|
||||
},
|
||||
{
|
||||
value: 'Technical',
|
||||
key: 'technical',
|
||||
},
|
||||
{
|
||||
value: 'Support',
|
||||
key: 'support',
|
||||
},
|
||||
{
|
||||
value: 'Trader',
|
||||
key: 'trader',
|
||||
},
|
||||
{
|
||||
value: 'Broker',
|
||||
key: 'broker',
|
||||
},
|
||||
],
|
||||
allowedRoles: [
|
||||
'admin',
|
||||
'superadmin',
|
||||
'accountant',
|
||||
'compliance',
|
||||
'support',
|
||||
'technical',
|
||||
'manager',
|
||||
],
|
||||
withCredentials: false,
|
||||
sentryEnabled: false,
|
||||
devMode: false,
|
||||
minutesBeforeWarningMessage: '1',
|
||||
};
|
||||
Reference in New Issue
Block a user