Skip to content

Commit

Permalink
Merge pull request SpinaCMS#241 from danmitchell-/remove-legacy-assets
Browse files Browse the repository at this point in the history
Remove legacy assets
  • Loading branch information
Bramjetten authored Apr 1, 2017
2 parents 1312274 + d83113e commit fa62274
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 11,057 deletions.
4 changes: 0 additions & 4 deletions app/assets/javascripts/spina/admin/application.coffee.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
# Misc plugins

#= require spina/sortable
#= require spina/raphael
#= require spina/morris
#= require spina/wysihtml5_parser_rules
#= require spina/wysihtml5
#= require spina/trix

# Own code
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/spina/admin/trix.coffee.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Trix.config.blockAttributes = $.extend Trix.config.blockAttributes, {
class Spina.TrixAttachment
@photoSelect: (e) ->
editor_id = $(this).closest('trix-toolbar').data('trix-editor-id')
$.get("<%= Spina::Engine.routes.url_helpers.wysihtml5_select_admin_photos_path('') %>/#{editor_id}")
$.get("<%= Spina::Engine.routes.url_helpers.photo_select_admin_photos_path('') %>/#{editor_id}")

@photoInsert: (e, url) ->
length = this.editor.getDocument().toString().length
Expand Down
5 changes: 0 additions & 5 deletions app/assets/stylesheets/spina.sass
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@
@import spina/sortable_lists
@import spina/gallery
@import spina/login
@import spina/cards
@import spina/trix
@import spina/wizard
@import spina/notifications

// Plugins
@import spina/morris
@import spina/wysihtml5

html
box-sizing: border-box
Expand Down
54 changes: 0 additions & 54 deletions app/assets/stylesheets/spina/_cards.sass

This file was deleted.

122 changes: 0 additions & 122 deletions app/assets/stylesheets/spina/_wizard.sass

This file was deleted.

79 changes: 0 additions & 79 deletions app/assets/stylesheets/spina/_wysihtml5.sass

This file was deleted.

14 changes: 0 additions & 14 deletions app/assets/stylesheets/spina/wysihtml5_textarea.sass

This file was deleted.

11 changes: 0 additions & 11 deletions app/controllers/spina/admin/page_parts_controller.rb

This file was deleted.

15 changes: 0 additions & 15 deletions app/controllers/spina/admin/photos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,6 @@ def insert_photo_collection
@photos = Photo.find(params[:photo_ids]) if params[:photo_ids].present?
end

def wysihtml5_insert
@photo = Photo.find(params[:photo_id])
end

def wysihtml5_select
@photos = Photo.sorted.page(params[:page])
@photo = Photo.new

if params[:page].present?
render :wysihtml5_infinite_scroll
else
render :wysihtml5_select
end
end

private

def set_breadcrumbs
Expand Down
12 changes: 0 additions & 12 deletions app/views/spina/admin/page_parts/_wysihtml5_link.html.haml

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/spina/admin/page_parts/insert_wysihtml5_link.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/spina/admin/page_parts/wysihtml5_link.js

This file was deleted.

13 changes: 0 additions & 13 deletions app/views/spina/admin/photos/_wysihtml5_select.html.haml

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/spina/admin/photos/wysihtml5_infinite_scroll.js.erb

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/spina/admin/photos/wysihtml5_insert.js.coffee

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/spina/admin/photos/wysihtml5_select.js.erb

This file was deleted.

Loading

0 comments on commit fa62274

Please sign in to comment.