Only import bootstrap component that we need

pull/177/head
Chocobozzz 2017-12-20 09:26:50 +01:00
parent 24a8e782d8
commit e203f2e0e1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 43 additions and 49 deletions

View File

@ -2,7 +2,7 @@
@import '_mixins'; @import '_mixins';
$icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/'; $icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/';
@import '~bootstrap-sass/assets/stylesheets/_bootstrap'; @import '_bootstrap';
$FontPathSourceSansPro: '../../node_modules/npm-font-source-sans-pro/fonts'; $FontPathSourceSansPro: '../../node_modules/npm-font-source-sans-pro/fonts';
@import '~npm-font-source-sans-pro/source-sans-pro'; @import '~npm-font-source-sans-pro/source-sans-pro';

View File

@ -1,56 +1,50 @@
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
// Core variables and mixins // Core variables and mixins
@import "bootstrap/variables"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/variables";
@import "bootstrap/mixins"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/mixins";
// Reset and dependencies // Reset and dependencies
@import "bootstrap/normalize"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/normalize";
@import "bootstrap/print"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/print";
@import "bootstrap/glyphicons"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/glyphicons";
// Core CSS // Core CSS
@import "bootstrap/scaffolding"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/scaffolding";
@import "bootstrap/type"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/type";
@import "bootstrap/code"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/code";
@import "bootstrap/grid"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/grid";
@import "bootstrap/tables"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/tables";
@import "bootstrap/forms"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/forms";
@import "bootstrap/buttons"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/buttons";
// Components // Components
@import "bootstrap/component-animations"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/component-animations";
@import "bootstrap/dropdowns"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/dropdowns";
@import "bootstrap/button-groups"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/button-groups";
@import "bootstrap/input-groups"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/input-groups";
@import "bootstrap/navs"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/navs";
@import "bootstrap/navbar"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/navbar";
@import "bootstrap/breadcrumbs"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/breadcrumbs";
@import "bootstrap/pagination"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/pagination";
@import "bootstrap/pager"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/pager";
@import "bootstrap/labels"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/labels";
@import "bootstrap/badges"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/badges";
@import "bootstrap/jumbotron"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/jumbotron";
@import "bootstrap/thumbnails"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/thumbnails";
@import "bootstrap/alerts"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/alerts";
@import "bootstrap/progress-bars"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/progress-bars";
@import "bootstrap/media"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/media";
@import "bootstrap/list-group"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/list-group";
@import "bootstrap/panels"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/panels";
@import "bootstrap/responsive-embed"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/responsive-embed";
@import "bootstrap/wells"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/wells";
@import "bootstrap/close"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/close";
// Components w/ JavaScript // Components w/ JavaScript
@import "bootstrap/modals"; @import "~bootstrap-sass/assets/stylesheets/bootstrap/modals";
@import "bootstrap/tooltip"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/tooltip";
@import "bootstrap/popovers"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/popovers";
@import "bootstrap/carousel"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/carousel";
// Utility classes //// Utility classes
@import "bootstrap/utilities"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/utilities";
@import "bootstrap/responsive-utilities"; //@import "~bootstrap-sass/assets/stylesheets/bootstrap/responsive-utilities";

View File

@ -51,10 +51,10 @@ function shareVideo (actorAnnouncer: ActorModel, activity: ActivityAnnounce) {
let video: VideoModel let video: VideoModel
if (typeof announced === 'string') { if (typeof announced === 'string') {
video = await VideoModel.loadByUrlAndPopulateAccount(announced as string) video = await VideoModel.loadByUrlAndPopulateAccount(announced)
if (!video) throw new Error('Unknown video to share ' + announced) if (!video) throw new Error('Unknown video to share ' + announced)
} else { } else {
video = await processCreateActivity(announced as ActivityCreate) video = await processCreateActivity(announced)
} }
const share = { const share = {