Remove particleground

This commit is contained in:
Andreas Nedbal 2022-04-11 22:06:10 +02:00 committed by Andreas Nedbal
parent a2f3f5dce2
commit 3bbc7a36f8
5 changed files with 2 additions and 20 deletions

View File

@ -4,7 +4,6 @@ import 'regenerator-runtime/runtime'
import '../legacy/jquery' import '../legacy/jquery'
import 'popper.js' import 'popper.js'
import 'bootstrap' import 'bootstrap'
import 'particleground/jquery.particleground.min'
import '../legacy/pagination' import '../legacy/pagination'
import '../legacy/util' import '../legacy/util'
@ -13,15 +12,5 @@ _ready = ->
$('[data-toggle="tooltip"]').tooltip() $('[data-toggle="tooltip"]').tooltip()
$('.dropdown-toggle').dropdown() $('.dropdown-toggle').dropdown()
if document.getElementById('particles')?
jumbo = $ '.j2-jumbo'
bodyColorOrig = jumbo.css 'background-color'
bodyColor = doppler 0.25, bodyColorOrig
console.log bodyColor, bodyColorOrig
particleground document.getElementById('particles'),
dotColor: bodyColor
lineColor: bodyColor
density: 23000
$(document).ready _ready $(document).ready _ready
$(document).on 'turbolinks:load', _ready $(document).on 'turbolinks:load', _ready

View File

@ -1,7 +1,6 @@
- provide(:title, generate_title('Discover')) - provide(:title, generate_title('Discover'))
.jumbotron.jumbotron--particles .jumbotron
.jumbotron__particles#particles
.jumbotron__content .jumbotron__content
%h1= t 'views.discover.title' %h1= t 'views.discover.title'
%p= t('views.discover.subtitle', app_title: APP_CONFIG['site_name']) %p= t('views.discover.subtitle', app_title: APP_CONFIG['site_name'])

View File

@ -1,6 +1,5 @@
- provide(:title, generate_title('About')) - provide(:title, generate_title('About'))
.jumbotron.jumbotron--particles .jumbotron
.jumbotron__particles#particles
.jumbotron__content .jumbotron__content
%h1= APP_CONFIG['site_name'] %h1= APP_CONFIG['site_name']
%p= t 'views.about.subtitle' %p= t 'views.about.subtitle'

View File

@ -16,7 +16,6 @@
"jquery": "^3.5.1", "jquery": "^3.5.1",
"js-cookie": "2.2.1", "js-cookie": "2.2.1",
"lato-font": "^3.0.0", "lato-font": "^3.0.0",
"particleground": "jnicol/particleground",
"popper.js": "^1.16.1", "popper.js": "^1.16.1",
"regenerator-runtime": "^0.13.7", "regenerator-runtime": "^0.13.7",
"sweetalert": "1.1.3", "sweetalert": "1.1.3",

View File

@ -5343,10 +5343,6 @@ parseurl@~1.3.2, parseurl@~1.3.3:
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==
particleground@jnicol/particleground:
version "0.0.0"
resolved "https://codeload.github.com/jnicol/particleground/tar.gz/124f7dbe732693ff5ab7f6c9edaea46acd2416a2"
pascalcase@^0.1.1: pascalcase@^0.1.1:
version "0.1.1" version "0.1.1"
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"