shimmer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shimmer/tasks/db.rake +6 -3
- data/lib/shimmer/version.rb +1 -1
- data/src/modal.ts +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 166c374942cdbfe22b8a1274633247cb95964439bcd959ca8cdb59a774767f50
|
4
|
+
data.tar.gz: 4e64bb6dc30433b6521c6283e5ad9e1232cdadd6b993a45ba4c27999eebb5c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803fcbb251147f224eaa42ce9b5bdca8a2e7d73488e32b7ef01f91abdcff01674b0238b8a0fc0ae2299d69855938a0fe817a9f1b8e1becdfba6cfbc36b8b1595
|
7
|
+
data.tar.gz: 545e5378acb4c46a72fa8604f6e881921d65723008e28561aa688d7a1d83729b23bf7f4b1b0ae1d76328fde2cda0a04f4c8176cc167aa632aeee60e5bcfa465f
|
data/lib/shimmer/tasks/db.rake
CHANGED
@@ -3,14 +3,17 @@
|
|
3
3
|
namespace :db do
|
4
4
|
desc "Downloads the app database from heroku to local db"
|
5
5
|
task pull_data: :environment do
|
6
|
-
config =
|
7
|
-
|
6
|
+
config = if Rails.version.to_f >= 7
|
7
|
+
ActiveRecord::Base.connection_db_config.configuration_hash.with_indifferent_access
|
8
|
+
else
|
9
|
+
ActiveRecord::Base.connection_db_config.config
|
10
|
+
end
|
8
11
|
ENV["DISABLE_DATABASE_ENVIRONMENT_CHECK"] = "1"
|
9
12
|
Rake::Task["db:drop"].invoke
|
10
13
|
ENV["PGUSER"] = config["username"]
|
11
14
|
ENV["PGHOST"] = config["host"]
|
12
15
|
ENV["PGPORT"] = config["port"].to_s
|
13
|
-
sh "heroku pg:pull DATABASE_URL #{config["database"]}
|
16
|
+
sh "heroku pg:pull DATABASE_URL #{config["database"]}"
|
14
17
|
sh "rails db:environment:set"
|
15
18
|
sh "RAILS_ENV=test rails db:create"
|
16
19
|
end
|
data/lib/shimmer/version.rb
CHANGED
data/src/modal.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { createElement, nextFrame, getHTML } from "./util";
|
2
2
|
|
3
3
|
export interface ModalOptions {
|
4
4
|
id?: string;
|
@@ -11,7 +11,7 @@ export class ModalPresenter {
|
|
11
11
|
private modals: Record<string, Modal> = {};
|
12
12
|
|
13
13
|
constructor() {
|
14
|
-
|
14
|
+
document.addEventListener("turbo:load", this.prepareBlind);
|
15
15
|
}
|
16
16
|
|
17
17
|
async open(options: ModalOptions): Promise<void> {
|
@@ -38,9 +38,9 @@ export class ModalPresenter {
|
|
38
38
|
document.body.classList.toggle("modal-open", open);
|
39
39
|
}
|
40
40
|
|
41
|
-
private
|
41
|
+
private prepareBlind: () => void = () => {
|
42
42
|
createElement(document.body, "modal-blind");
|
43
|
-
}
|
43
|
+
};
|
44
44
|
}
|
45
45
|
|
46
46
|
export class Modal {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Ravens
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|