rails_local_analytics 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/rails_local_analytics/_app_css.html.erb +24 -0
- data/app/views/layouts/rails_local_analytics/application.html.erb +1 -1
- data/lib/rails_local_analytics/engine.rb +0 -21
- data/lib/rails_local_analytics/version.rb +1 -1
- metadata +3 -6
- data/app/assets/config/rails_local_analytics_manifest.js +0 -3
- data/app/assets/images/rails_local_analytics/.keep +0 -0
- data/app/assets/javascripts/rails_local_analytics/.keep +0 -0
- data/app/assets/stylesheets/rails_local_analytics/application.css +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5be8a8f510948794f47c7def68df1255799c2d6cf0369e7d289ecd8acaea043b
|
4
|
+
data.tar.gz: 874791f3d55326f27bd51fe4869d4d543e886ac9fd1ccfd146577c1551e9045c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3b5fd990b12e05c06772a5b8762d92386b7be5e56a6322042ad6f16e807a731edbd3b8fd2d1c646f5778a66b62093143ee9a055f0894186c9b28fd610910c3
|
7
|
+
data.tar.gz: 2a99293aba47a9d2660d5bf258fe62aa25b2af75b7d001f5e172e2a0936471fa600584a1c6c6bce355acf4cadb1cd124c39c6deddc53dbf6b48b56de056e9949
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<style>
|
2
|
+
body{
|
3
|
+
padding-bottom: 20px;
|
4
|
+
}
|
5
|
+
|
6
|
+
table td{
|
7
|
+
overflow-wrap: anywhere;
|
8
|
+
}
|
9
|
+
|
10
|
+
input, select {
|
11
|
+
border-radius: 5px;
|
12
|
+
border: 1px solid #333;
|
13
|
+
background: white;
|
14
|
+
padding: 2px 5px;
|
15
|
+
}
|
16
|
+
|
17
|
+
button.is-link{
|
18
|
+
border: none;
|
19
|
+
background: none;
|
20
|
+
color: #2780e3;
|
21
|
+
text-decoration: underline;
|
22
|
+
cursor: pointer;
|
23
|
+
}
|
24
|
+
</style>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= csp_meta_tag %>
|
10
10
|
|
11
11
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/cosmo/bootstrap.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
12
|
-
<%=
|
12
|
+
<%= render "layouts/rails_local_analytics/app_css" %>
|
13
13
|
</head>
|
14
14
|
|
15
15
|
<body>
|
@@ -2,27 +2,6 @@ module RailsLocalAnalytics
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace RailsLocalAnalytics
|
4
4
|
|
5
|
-
initializer "rails_local_analytics.assets.precompile" do |app|
|
6
|
-
# this initializer is only called when sprockets is in use
|
7
|
-
|
8
|
-
app.config.assets.precompile << "rails_local_analytics_manifest.js" ### manifest file required
|
9
|
-
|
10
|
-
### Automatically precompile assets in specified folders
|
11
|
-
["app/assets/images/"].each do |folder|
|
12
|
-
dir = app.root.join(folder)
|
13
|
-
|
14
|
-
if Dir.exist?(dir)
|
15
|
-
Dir.glob(File.join(dir, "**/*")).each do |f|
|
16
|
-
asset_name = f.to_s
|
17
|
-
.split(folder).last # Remove fullpath
|
18
|
-
.sub(/^\/*/, '') ### Remove leading '/'
|
19
|
-
|
20
|
-
app.config.assets.precompile << asset_name
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
5
|
initializer "rails_local_analytics.load_static_assets" do |app|
|
27
6
|
### Expose static assets
|
28
7
|
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_local_analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -105,10 +105,6 @@ files:
|
|
105
105
|
- LICENSE
|
106
106
|
- README.md
|
107
107
|
- Rakefile
|
108
|
-
- app/assets/config/rails_local_analytics_manifest.js
|
109
|
-
- app/assets/images/rails_local_analytics/.keep
|
110
|
-
- app/assets/javascripts/rails_local_analytics/.keep
|
111
|
-
- app/assets/stylesheets/rails_local_analytics/application.css
|
112
108
|
- app/controllers/rails_local_analytics/application_controller.rb
|
113
109
|
- app/controllers/rails_local_analytics/dashboard_controller.rb
|
114
110
|
- app/jobs/rails_local_analytics/application_job.rb
|
@@ -116,6 +112,7 @@ files:
|
|
116
112
|
- app/models/rails_local_analytics/application_record.rb
|
117
113
|
- app/models/tracked_requests_by_day_page.rb
|
118
114
|
- app/models/tracked_requests_by_day_site.rb
|
115
|
+
- app/views/layouts/rails_local_analytics/_app_css.html.erb
|
119
116
|
- app/views/layouts/rails_local_analytics/application.html.erb
|
120
117
|
- app/views/rails_local_analytics/dashboard/index.html.erb
|
121
118
|
- config/initializers/browser_monkey_patches.rb
|
File without changes
|
File without changes
|
@@ -1,22 +0,0 @@
|
|
1
|
-
body{
|
2
|
-
padding-bottom: 20px;
|
3
|
-
}
|
4
|
-
|
5
|
-
table td{
|
6
|
-
overflow-wrap: anywhere;
|
7
|
-
}
|
8
|
-
|
9
|
-
input, select {
|
10
|
-
border-radius: 5px;
|
11
|
-
border: 1px solid #333;
|
12
|
-
background: white;
|
13
|
-
padding: 2px 5px;
|
14
|
-
}
|
15
|
-
|
16
|
-
button.is-link{
|
17
|
-
border: none;
|
18
|
-
background: none;
|
19
|
-
color: #2780e3;
|
20
|
-
text-decoration: underline;
|
21
|
-
cursor: pointer;
|
22
|
-
}
|