Skip to content

Commit

Permalink
Merge ea700f4 into 71a3ff0
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Apr 21, 2024
2 parents 71a3ff0 + ea700f4 commit 967cbb0
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 64 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci_rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ jobs:
- name: Update translation files
run: bundle exec rake lang:update

- name: Compile SASS to CSS
run: bundle exec rails dartsass:build

# And finally we can run the test suite
- name: Run tests
env:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,3 @@ public/field_slips
# DB snapshots are often lying about, don't want them accidentally checked in.
checkpoint*
db/checkpoint*

/app/assets/builds/*
!/app/assets/builds/.keep
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gem("sprockets-rails")
# https://github.com/hotwired/stimulus-rails/issues/108
gem("sprockets", "~>4.2.1")
# Compile SCSS for stylesheets
gem("dartsass-rails")
gem("dartsass-sprockets")
# Use bootstrap style generator
gem("bootstrap-sass")
# Use Terser as compressor for JavaScript assets
Expand Down
34 changes: 21 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ GEM
cuprite (0.15)
capybara (~> 3.0)
ferrum (~> 0.14.0)
dartsass-rails (0.5.0)
railties (>= 6.0.0)
sass-embedded (~> 1.63)
dartsass-sprockets (3.1.0)
railties (>= 4.0.0)
sassc-embedded (~> 1.69)
sprockets (> 3.0)
sprockets-rails
tilt
database_cleaner-active_record (2.1.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
Expand All @@ -140,9 +143,12 @@ GEM
raabro (~> 1.4)
globalid (1.2.1)
activesupport (>= 6.1)
google-protobuf (3.25.3-arm64-darwin)
google-protobuf (3.25.3-x86_64-darwin)
google-protobuf (3.25.3-x86_64-linux)
google-protobuf (4.26.0-arm64-darwin)
rake (>= 13)
google-protobuf (4.26.0-x86_64-darwin)
rake (>= 13)
google-protobuf (4.26.0-x86_64-linux)
rake (>= 13)
hashdiff (1.1.0)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -293,14 +299,16 @@ GEM
rubocop (>= 0.90.0)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
sass-embedded (1.71.1-arm64-darwin)
google-protobuf (~> 3.25)
sass-embedded (1.71.1-x86_64-darwin)
google-protobuf (~> 3.25)
sass-embedded (1.71.1-x86_64-linux-gnu)
google-protobuf (~> 3.25)
sass-embedded (1.72.0-arm64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
sassc (2.4.0)
ffi (~> 1.9)
sassc-embedded (1.70.1)
sass-embedded (~> 1.70)
set (1.1.0)
simplecov (0.22.0)
docile (~> 1.1)
Expand Down Expand Up @@ -399,7 +407,7 @@ DEPENDENCIES
cache_with_locale
capybara
cuprite
dartsass-rails
dartsass-sprockets
database_cleaner-active_record
debug
fastimage
Expand Down
2 changes: 0 additions & 2 deletions Procfile.dev

This file was deleted.

Empty file removed app/assets/builds/.keep
Empty file.
9 changes: 7 additions & 2 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//= link_tree ../fonts
//= link_tree ../images
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js

//= link_tree ../builds
//= link Admin.css
//= link Agaricus.css
//= link Amanita.css
//= link BlackOnWhite.css
//= link Cantharellaceae.css
//= link Hygrocybe.css
//= link Sudo.css
4 changes: 2 additions & 2 deletions app/assets/stylesheets/mo/_maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
position: absolute;
width: 40px;
height: 40px;
background: url("red_pin.png");
background: image-url("red_pin.png");
}

.thumbnail-buttons {
Expand All @@ -52,7 +52,7 @@
.minus-button {
width: 16px;
height: 16px;
background: url("thumbnail-map-buttons.png");
background: image-url("thumbnail-map-buttons.png");
}

.minus-button {
Expand Down
8 changes: 0 additions & 8 deletions app/assets/stylesheets/mo/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -663,11 +663,3 @@
overflow-x: scroll
}
}

// @source - [@Stephn-R](https://github.com/sass/sass/issues/1395#issuecomment-57483844)
// @description converts 1 or more characters into a unicode
// @markup {scss}
// unicode("e655"); // "\e655"
@function unicode($str){
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
}
6 changes: 0 additions & 6 deletions app/assets/stylesheets/mushroom_observer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
@import "bootstrap-sprockets";
// This map sets Bootstrap's variables with those theme color variables.
@import "mo/map_theme_vars_to_bootstrap_vars"; // Overwrite bootstrap variables
// Because bootstrap-sass adds a url(font-path( that doesn't work.
@font-face {
font-family: "Glyphicons Halflings";
src: url("bootstrap/glyphicons-halflings-regular.eot");
src: url("bootstrap/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("bootstrap/glyphicons-halflings-regular.woff2") format("woff2"), url("bootstrap/glyphicons-halflings-regular.woff") format("woff"), url("bootstrap/glyphicons-halflings-regular.ttf") format("truetype"), url("bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg")
}
@import "bootstrap";

// Now, set custom styles for MO elements.
Expand Down
1 change: 0 additions & 1 deletion app/views/controllers/application/app/_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta charset="utf-8"/>
<meta name="turbo-refresh-scroll" content="preserve">
<%= auto_discovery_link_tag(
:rss, activity_logs_rss_path, { title: :app_rss.l }
Expand Down
8 changes: 0 additions & 8 deletions bin/dev

This file was deleted.

15 changes: 0 additions & 15 deletions config/initializers/dartsass.rb

This file was deleted.

0 comments on commit 967cbb0

Please sign in to comment.