Remove remaining files in assets
This commit is contained in:
parent
28e9da05bf
commit
6533c2c425
|
@ -1,70 +0,0 @@
|
|||
var billing_endpoint, customer_io_site_id, enterprise, pages_endpoint, pro, pusher, pusher_host, pusher_key, pusher_log_fallback, pusher_path;
|
||||
|
||||
pages_endpoint = $('meta[rel="travis.pages_endpoint"]').attr('href');
|
||||
billing_endpoint = $('meta[rel="travis.billing_endpoint"]').attr('href');
|
||||
customer_io_site_id = $('meta[name="travis.customer_io_site_id"]').attr('value');
|
||||
|
||||
if (customer_io_site_id) {
|
||||
setupCustomerio(customer_io_site_id);
|
||||
}
|
||||
|
||||
enterprise = $('meta[name="travis.enterprise"]').attr('value') === 'true';
|
||||
pro = $('meta[name="travis.pro"]').attr('value') === 'true' || enterprise;
|
||||
pusher_key = $('meta[name="travis.pusher_key"]').attr('value');
|
||||
pusher_host = $('meta[name="travis.pusher_host"]').attr('value');
|
||||
pusher_path = $('meta[name="travis.pusher_path"]').attr('value');
|
||||
pusher_log_fallback = $('meta[name="travis.pusher_log_fallback"]').attr('value') === 'true';
|
||||
|
||||
if (pro) {
|
||||
pusher = {
|
||||
channels: [],
|
||||
channel_prefix: 'private-',
|
||||
encrypted: true
|
||||
};
|
||||
} else {
|
||||
pusher = {
|
||||
channels: ['common'],
|
||||
channel_prefix: '',
|
||||
encrypted: false
|
||||
};
|
||||
}
|
||||
|
||||
pusher.key = pusher_key;
|
||||
pusher.host = pusher_host;
|
||||
pusher.path = pusher_path;
|
||||
pusher.log_fallback = pusher_log_fallback;
|
||||
|
||||
config = {
|
||||
syncingPageRedirectionTime: 5000,
|
||||
api_endpoint: $('meta[rel="travis.api_endpoint"]').attr('href'),
|
||||
source_endpoint: $('meta[rel="travis.source_endpoint"]').attr('href'),
|
||||
ga_code: $('meta[name="travis.ga_code"]').attr('value'),
|
||||
code_climate: $('meta[name="travis.code_climate"]').attr('value'),
|
||||
endpoints: {
|
||||
ssh_key: $('meta[name="travis.ssh_key_enabled"]').attr('value') === 'true',
|
||||
caches: $('meta[name="travis.caches_enabled"]').attr('value') === 'true'
|
||||
},
|
||||
code_climate_url: $('meta[name="travis.code_climate_url"]').attr('value'),
|
||||
show_repos_hint: 'private',
|
||||
avatar_default_url: 'https://travis-ci.org/images/ui/default-avatar.png',
|
||||
pro: pro,
|
||||
enterprise: enterprise,
|
||||
sidebar_support_box: pro && !enterprise,
|
||||
pages_endpoint: pages_endpoint || billing_endpoint,
|
||||
billing_endpoint: billing_endpoint,
|
||||
url_legal: billing_endpoint + "/pages/legal",
|
||||
url_imprint: billing_endpoint + "/pages/imprint",
|
||||
url_security: billing_endpoint + "/pages/security",
|
||||
url_terms: billing_endpoint + "/pages/terms",
|
||||
customer_io_site_id: customer_io_site_id,
|
||||
intervals: {
|
||||
times: -1,
|
||||
updateTimes: 1000
|
||||
},
|
||||
pusher: pusher
|
||||
};
|
||||
|
||||
if(!window.ENV) {
|
||||
window.ENV = {};
|
||||
}
|
||||
window.ENV.config = config;
|
|
@ -1,234 +0,0 @@
|
|||
require 'config/environment'
|
||||
require 'utils/computed-limit'
|
||||
require 'app'
|
||||
|
||||
window.ENV ||= {}
|
||||
window.ENV.RAISE_ON_DEPRECATION = true
|
||||
|
||||
window.Travis = App.create()
|
||||
|
||||
Travis.deferReadiness()
|
||||
|
||||
Ember.LinkView.reopen
|
||||
loadingClass: 'loading_link'
|
||||
|
||||
if charm_key = $('meta[name="travis.charm_key"]').attr('value')
|
||||
@__CHARM =
|
||||
key: $('meta[name="travis.charm_key"]').attr('value')
|
||||
url: "https://charmscout.herokuapp.com/feedback"
|
||||
|
||||
$('head').append $('<script src="https://charmscout.herokuapp.com/charmeur.js?v=2" async defer></script>')
|
||||
|
||||
require 'utils/ajax'
|
||||
|
||||
require 'utils/keys-map'
|
||||
require 'utils/urls'
|
||||
require 'utils/helpers'
|
||||
require 'utils/status-image-formats'
|
||||
require 'utils/pusher'
|
||||
require 'utils/slider'
|
||||
require 'utils/tailing'
|
||||
require 'utils/to-top'
|
||||
require 'mixins/github-url-properties'
|
||||
|
||||
require 'utils/keys-map'
|
||||
require 'adapters/application'
|
||||
require 'serializers/application'
|
||||
require 'serializers/repo'
|
||||
require 'serializers/job'
|
||||
require 'serializers/build'
|
||||
require 'serializers/account'
|
||||
require 'serializers/request'
|
||||
require 'serializers/env-var'
|
||||
require 'adapters/env-var'
|
||||
require 'adapters/ssh-key'
|
||||
require 'transforms/object'
|
||||
|
||||
require 'store'
|
||||
|
||||
require 'router'
|
||||
require 'routes/abstract-builds'
|
||||
require 'routes/account'
|
||||
require 'routes/accounts/index'
|
||||
require 'routes/accounts/info'
|
||||
require 'routes/accounts'
|
||||
require 'routes/application'
|
||||
require 'routes/auth'
|
||||
require 'routes/branches'
|
||||
require 'routes/build'
|
||||
require 'routes/builds'
|
||||
require 'routes/caches'
|
||||
require 'routes/env-vars'
|
||||
require 'routes/first-sync'
|
||||
require 'routes/getting-started'
|
||||
require 'routes/insufficient-oauth-permissions'
|
||||
require 'routes/job'
|
||||
require 'routes/main/index'
|
||||
require 'routes/main/my-repositories'
|
||||
require 'routes/main/recent'
|
||||
require 'routes/main/repositories'
|
||||
require 'routes/main/search'
|
||||
require 'routes/main'
|
||||
require 'routes/main-tab'
|
||||
require 'routes/not-found'
|
||||
require 'routes/profile'
|
||||
require 'routes/pull-requests'
|
||||
require 'routes/repo/index'
|
||||
require 'routes/repo'
|
||||
require 'routes/request'
|
||||
require 'routes/requests'
|
||||
require 'routes/basic'
|
||||
require 'routes/settings/index'
|
||||
require 'routes/settings'
|
||||
require 'routes/simple-layout'
|
||||
require 'routes/ssh-key'
|
||||
require 'routes/dashboard'
|
||||
require 'routes/dashboard/repositories'
|
||||
|
||||
require 'utils/auth'
|
||||
|
||||
require 'controllers/accounts'
|
||||
require 'controllers/auth'
|
||||
require 'controllers/account'
|
||||
require 'controllers/build'
|
||||
require 'controllers/builds'
|
||||
require 'controllers/flash'
|
||||
require 'controllers/job'
|
||||
require 'controllers/profile'
|
||||
require 'controllers/repos'
|
||||
require 'controllers/repo'
|
||||
require 'controllers/settings/index'
|
||||
require 'controllers/current-user'
|
||||
require 'controllers/request'
|
||||
require 'controllers/requests'
|
||||
require 'controllers/caches'
|
||||
require 'controllers/caches-item'
|
||||
require 'controllers/caches-by-branch'
|
||||
require 'controllers/env-var'
|
||||
require 'controllers/env-vars'
|
||||
require 'controllers/env-var-new'
|
||||
require 'controllers/ssh-key'
|
||||
require 'controllers/sidebar'
|
||||
require 'controllers/top'
|
||||
require 'controllers/first-sync'
|
||||
require 'controllers/accounts/info'
|
||||
require 'controllers/main/error'
|
||||
require 'controllers/builds-item'
|
||||
require 'controllers/queue'
|
||||
require 'controllers/running-jobs'
|
||||
require 'controllers/dashboard/repositories'
|
||||
|
||||
Travis.Handlebars = {}
|
||||
|
||||
require 'helpers/label'
|
||||
require 'helpers/input'
|
||||
require 'helpers/tipsy'
|
||||
require 'helpers/travis-errors'
|
||||
require 'helpers/travis-field'
|
||||
require 'helpers/travis-field'
|
||||
require 'helpers/filter-input'
|
||||
require 'helpers/capitalize'
|
||||
require 'helpers/humanize-state'
|
||||
require 'helpers/github-commit-link'
|
||||
require 'helpers/format-time'
|
||||
require 'helpers/format-duration'
|
||||
require 'helpers/format-commit'
|
||||
require 'helpers/format-sha'
|
||||
require 'helpers/format-message'
|
||||
require 'helpers/format-config'
|
||||
require 'helpers/short-compare-shas'
|
||||
require 'helpers/mb'
|
||||
|
||||
Ember.Handlebars.registerHelper('label', Travis.Handlebars.label)
|
||||
Ember.Handlebars.registerHelper('input', Travis.Handlebars.input)
|
||||
Ember.Handlebars.registerHelper('tipsy', Travis.Handlebars.tipsy)
|
||||
Ember.Handlebars.registerHelper('travis-errors', Travis.Handlebars.travisErrors)
|
||||
Ember.Handlebars.registerHelper('travis-field', Travis.Handlebars.travisField)
|
||||
Ember.Handlebars.registerHelper('filter-input', Travis.Handlebars.filterInput)
|
||||
|
||||
Ember.Handlebars.registerBoundHelper('capitalize', Travis.Handlebars.capitalize)
|
||||
Ember.Handlebars.registerBoundHelper('humanize-state', Travis.Handlebars.humanizeState)
|
||||
Ember.Handlebars.registerBoundHelper('github-commit-link', Travis.Handlebars.githubCommitLink)
|
||||
Ember.Handlebars.registerBoundHelper('format-time', Travis.Handlebars.formatTime)
|
||||
Ember.Handlebars.registerBoundHelper('format-duration', Travis.Handlebars.formatDuration)
|
||||
Ember.Handlebars.registerBoundHelper('format-commit', Travis.Handlebars.formatCommit, 'sha', 'branch')
|
||||
Ember.Handlebars.registerBoundHelper('format-sha', Travis.Handlebars.formatSha)
|
||||
Ember.Handlebars.registerBoundHelper('format-message', Travis.Handlebars.formatMessage)
|
||||
Ember.Handlebars.registerBoundHelper('format-config', Travis.Handlebars.formatConfig)
|
||||
Ember.Handlebars.registerBoundHelper('short-compare-shas', Travis.Handlebars.shortCompareShas)
|
||||
Ember.Handlebars.registerBoundHelper('mb', Travis.Handlebars.mb)
|
||||
|
||||
Ember.LinkView.reopen
|
||||
init: ->
|
||||
@_super()
|
||||
eventName = Ember.get(this, 'eventName')
|
||||
if Ember.get(this, 'trackEvent')
|
||||
@on(eventName, this, @_trackEvent)
|
||||
@on(eventName, this, @_invoke)
|
||||
|
||||
_trackEvent: (event) ->
|
||||
event.preventDefault()
|
||||
|
||||
require 'models/account'
|
||||
require 'models/broadcast'
|
||||
require 'models/branch'
|
||||
require 'models/build'
|
||||
require 'models/commit'
|
||||
require 'models/hook'
|
||||
require 'models/job'
|
||||
require 'models/log'
|
||||
require 'models/annotation'
|
||||
require 'models/repo'
|
||||
require 'models/request'
|
||||
require 'models/user'
|
||||
require 'models/env-var'
|
||||
require 'models/ssh-key'
|
||||
|
||||
require 'vendor/log'
|
||||
|
||||
require 'views/basic'
|
||||
require 'views/flash-item'
|
||||
require 'views/accounts-info'
|
||||
require 'views/hooks'
|
||||
require 'views/pre'
|
||||
require 'views/annotation'
|
||||
require 'views/application'
|
||||
require 'views/build'
|
||||
require 'views/flash'
|
||||
require 'views/job'
|
||||
require 'views/jobs'
|
||||
require 'views/jobs-item'
|
||||
require 'views/log'
|
||||
require 'views/repo'
|
||||
require 'views/repos-list'
|
||||
require 'views/repos-list-tabs'
|
||||
require 'views/repo-show-tools'
|
||||
require 'views/repo-show-tabs'
|
||||
require 'views/repo-actions'
|
||||
require 'views/profile'
|
||||
require 'views/profile-tabs'
|
||||
require 'views/signin'
|
||||
require 'views/top'
|
||||
require 'views/status-images'
|
||||
require 'views/status-image-input'
|
||||
require 'views/dashboard'
|
||||
require 'views/show-more-button'
|
||||
require 'views/main'
|
||||
require 'views/not-found'
|
||||
require 'views/auth/signin'
|
||||
require 'views/insufficient-oauth-permissions'
|
||||
require 'views/first-sync'
|
||||
require 'views/application/loading'
|
||||
require 'views/dashboard/loading'
|
||||
|
||||
require 'components/travis-switch'
|
||||
|
||||
require 'initializers/auth'
|
||||
require 'initializers/config'
|
||||
require 'initializers/google-analytics'
|
||||
require 'initializers/pusher'
|
||||
require 'initializers/services'
|
||||
require 'initializers/storage'
|
||||
require 'initializers/stylesheets-manager'
|
||||
|
||||
require 'templates'
|
Loading…
Reference in New Issue
Block a user