ahoy_panel 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +21 -41
- data/Rakefile +9 -5
- data/lib/ahoy_panel/version.rb +3 -1
- data/lib/ahoy_panel.rb +4 -2
- data/sig/ahoy_panel.rbs +4 -0
- metadata +13 -189
- data/MIT-LICENSE +0 -20
- data/app/assets/builds/ahoy_panel.css +0 -1
- data/app/assets/config/ahoy_panel_manifest.js +0 -3
- data/app/assets/stylesheets/ahoy_panel/application.tailwind.css +0 -13
- data/app/components/ahoy_panel/date_arrow_navigator_component.html.erb +0 -38
- data/app/components/ahoy_panel/date_arrow_navigator_component.rb +0 -12
- data/app/components/ahoy_panel/dropdown_component.html.erb +0 -53
- data/app/components/ahoy_panel/dropdown_component.rb +0 -35
- data/app/components/ahoy_panel/stat_box_component.html.erb +0 -22
- data/app/components/ahoy_panel/stat_box_component.rb +0 -13
- data/app/controllers/ahoy_panel/application_controller.rb +0 -4
- data/app/controllers/ahoy_panel/dashboard_controller.rb +0 -69
- data/app/helpers/ahoy_panel/application_helper.rb +0 -4
- data/app/helpers/ahoy_panel/country_helper.rb +0 -7
- data/app/helpers/ahoy_panel/heroicon_helper.rb +0 -7
- data/app/helpers/ahoy_panel/nav_helper.rb +0 -13
- data/app/javascript/ahoy_panel/application.js +0 -4
- data/app/javascript/ahoy_panel/controllers/application.js +0 -9
- data/app/javascript/ahoy_panel/controllers/date_arrow_navigator_controller.js +0 -11
- data/app/javascript/ahoy_panel/controllers/dropdown_controller.js +0 -18
- data/app/javascript/ahoy_panel/controllers/index.js +0 -11
- data/app/javascript/ahoy_panel/controllers/mobile_header_controller.js +0 -20
- data/app/jobs/ahoy_panel/application_job.rb +0 -4
- data/app/mailers/ahoy_panel/application_mailer.rb +0 -6
- data/app/models/ahoy_panel/application_record.rb +0 -5
- data/app/models/ahoy_panel/bounce_rate_data.rb +0 -4
- data/app/models/ahoy_panel/stat_box_data.rb +0 -26
- data/app/models/ahoy_panel/total_pageviews_data.rb +0 -31
- data/app/models/ahoy_panel/total_visits_data.rb +0 -29
- data/app/models/ahoy_panel/unique_visitors_data.rb +0 -29
- data/app/models/ahoy_panel/view_per_visit_data.rb +0 -4
- data/app/models/ahoy_panel/visit_duration_data.rb +0 -4
- data/app/views/ahoy_panel/dashboard/index.html.erb +0 -77
- data/app/views/layouts/ahoy_panel/_header.html.erb +0 -82
- data/app/views/layouts/ahoy_panel/application.html.erb +0 -19
- data/config/importmap.rb +0 -8
- data/config/initializers/heroicon.rb +0 -10
- data/config/initializers/inline_svg.rb +0 -5
- data/config/routes.rb +0 -3
- data/config/tailwind.config.js +0 -23
- data/lib/ahoy_panel/engine.rb +0 -20
- data/lib/tasks/ahoy_panel_tasks.rake +0 -19
@@ -1,82 +0,0 @@
|
|
1
|
-
<nav
|
2
|
-
data-controller="header mobile-header"
|
3
|
-
class="bg-white shadow"
|
4
|
-
>
|
5
|
-
<div class="mx-auto max-w-7xl px-2 sm:px-4 lg:px-8">
|
6
|
-
<div class="flex h-16 justify-between">
|
7
|
-
<div class="flex px-2 lg:px-0">
|
8
|
-
<div class="flex shrink-0 items-center">
|
9
|
-
<img class="h-8 w-auto" src="https://tailwindui.com/plus/img/logos/mark.svg?color=sky&shade=600" alt="Your Company">
|
10
|
-
</div>
|
11
|
-
<div class="hidden lg:ml-6 lg:flex lg:space-x-8">
|
12
|
-
<!-- Current: "border-sky-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" -->
|
13
|
-
<a href="#" class="inline-flex items-center border-b-2 border-sky-500 px-1 pt-1 text-sm font-medium text-gray-900">Dashboard</a>
|
14
|
-
<% if false %>
|
15
|
-
<a href="#" class="inline-flex items-center border-b-2 px-1 pt-1 text-sm font-medium border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700">Boards</a>
|
16
|
-
<% end %>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<div class="flex items-center lg:hidden">
|
20
|
-
<!-- Mobile menu button -->
|
21
|
-
<button
|
22
|
-
data-action="click->mobile-header#toggle"
|
23
|
-
data-mobile-header-target="button"
|
24
|
-
data-open="false"
|
25
|
-
type="button"
|
26
|
-
class="relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-sky-500" aria-controls="mobile-menu" aria-expanded="false"
|
27
|
-
>
|
28
|
-
<span class="absolute -inset-0.5"></span>
|
29
|
-
<span class="sr-only">Open main menu</span>
|
30
|
-
<!--
|
31
|
-
Icon when menu is closed.
|
32
|
-
|
33
|
-
Menu open: "hidden", Menu closed: "block"
|
34
|
-
-->
|
35
|
-
<svg
|
36
|
-
data-mobile-header-target="closedIcon"
|
37
|
-
class="block size-6"
|
38
|
-
fill="none"
|
39
|
-
viewBox="0 0 24 24"
|
40
|
-
stroke-width="1.5"
|
41
|
-
stroke="currentColor"
|
42
|
-
aria-hidden="true"
|
43
|
-
data-slot="icon"
|
44
|
-
>
|
45
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
46
|
-
</svg>
|
47
|
-
<!--
|
48
|
-
Icon when menu is open.
|
49
|
-
|
50
|
-
Menu open: "block", Menu closed: "hidden"
|
51
|
-
-->
|
52
|
-
<svg
|
53
|
-
data-mobile-header-target="openedIcon"
|
54
|
-
class="hidden size-6"
|
55
|
-
fill="none"
|
56
|
-
viewBox="0 0 24 24"
|
57
|
-
stroke-width="1.5"
|
58
|
-
stroke="currentColor"
|
59
|
-
aria-hidden="true"
|
60
|
-
data-slot="icon"
|
61
|
-
>
|
62
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
63
|
-
</svg>
|
64
|
-
</button>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<!-- Mobile menu, show/hide based on menu state. -->
|
70
|
-
<div
|
71
|
-
data-mobile-header-target="mobileMenu"
|
72
|
-
class="hidden"
|
73
|
-
>
|
74
|
-
<div class="space-y-1 pb-3 pt-2">
|
75
|
-
<!-- Current: "bg-sky-50 border-sky-500 text-sky-700", Default: "border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800" -->
|
76
|
-
<a href="#" class="block border-l-4 border-sky-500 bg-sky-50 py-2 pl-3 pr-4 text-base font-medium text-sky-700">Dashboard</a>
|
77
|
-
<% if false %>
|
78
|
-
<a href="#" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-600 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800">Boards</a>
|
79
|
-
<% end %>
|
80
|
-
</div>
|
81
|
-
</div>
|
82
|
-
</nav>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>AhoyPanel</title>
|
5
|
-
<%= csrf_meta_tags %>
|
6
|
-
<%= csp_meta_tag %>
|
7
|
-
|
8
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
9
|
-
<%= stylesheet_link_tag "ahoy_panel", media: "all", "data-turbo-track": "reload" %>
|
10
|
-
<%= javascript_importmap_tags "application-ahoy-panel" %>
|
11
|
-
|
12
|
-
<%= yield :head %>
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body class="bg-gray-100 h-full">
|
16
|
-
<%= render "layouts/ahoy_panel/header" %>
|
17
|
-
<%= yield %>
|
18
|
-
</body>
|
19
|
-
</html>
|
data/config/importmap.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
pin "application-ahoy-panel", to: "ahoy_panel/application.js", preload: true
|
2
|
-
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
|
3
|
-
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
|
4
|
-
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
5
|
-
pin_all_from AhoyPanel::Engine.root.join("app/javascript/ahoy_panel/controllers"), under: "controllers", to: "ahoy_panel/controllers"
|
6
|
-
pin "el-transition" # @0.0.7
|
7
|
-
pin "chartkick", to: "chartkick.js"
|
8
|
-
pin "Chart.bundle", to: "Chart.bundle.js"
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require "heroicon"
|
2
|
-
|
3
|
-
Heroicon.configure do |config|
|
4
|
-
config.variant = :solid # Options are :solid, :outline and :mini
|
5
|
-
|
6
|
-
##
|
7
|
-
# You can set a default class, which will get applied to every icon with
|
8
|
-
# the given variant. To do so, un-comment the line below.
|
9
|
-
# config.default_class = {solid: "h-5 w-5", outline: "h-6 w-6", mini: "h-4 w-4"}
|
10
|
-
end
|
data/config/routes.rb
DELETED
data/config/tailwind.config.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
const defaultTheme = require('tailwindcss/defaultTheme')
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
content: [
|
5
|
-
'./public/*.html',
|
6
|
-
'./app/helpers/**/*.rb',
|
7
|
-
'./app/javascript/**/*.js',
|
8
|
-
'./app/views/**/*.{erb,haml,html,slim}',
|
9
|
-
'./app/components/**/*.{erb,haml,html,slim}'
|
10
|
-
],
|
11
|
-
theme: {
|
12
|
-
extend: {
|
13
|
-
fontFamily: {
|
14
|
-
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
|
15
|
-
},
|
16
|
-
},
|
17
|
-
},
|
18
|
-
plugins: [
|
19
|
-
require('@tailwindcss/forms'),
|
20
|
-
require('@tailwindcss/typography'),
|
21
|
-
require('@tailwindcss/container-queries'),
|
22
|
-
]
|
23
|
-
}
|
data/lib/ahoy_panel/engine.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require "importmap-rails"
|
2
|
-
require "turbo-rails"
|
3
|
-
require "stimulus-rails"
|
4
|
-
require "view_component"
|
5
|
-
|
6
|
-
module AhoyPanel
|
7
|
-
class Engine < ::Rails::Engine
|
8
|
-
isolate_namespace AhoyPanel
|
9
|
-
|
10
|
-
initializer "ahoy_panel.assets" do |app|
|
11
|
-
app.config.assets.paths << root.join("app/javascript")
|
12
|
-
app.config.assets.precompile += %w[ahoy_panel_manifest]
|
13
|
-
end
|
14
|
-
|
15
|
-
initializer "ahoy_panel.importmap", before: "importmap" do |app|
|
16
|
-
app.config.importmap.paths << root.join("config/importmap.rb")
|
17
|
-
app.config.importmap.cache_sweepers << root.join("app/javascript")
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :ahoy_panel do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
5
|
-
|
6
|
-
desc "Run Tailwind task"
|
7
|
-
namespace :tailwindcss do
|
8
|
-
task :watch do
|
9
|
-
require "tailwindcss-rails"
|
10
|
-
require "tailwindcss/ruby"
|
11
|
-
|
12
|
-
system "#{Tailwindcss::Ruby.executable} \
|
13
|
-
-i #{AhoyPanel::Engine.root.join("app/assets/stylesheets/ahoy_panel/application.tailwind.css")} \
|
14
|
-
-o #{AhoyPanel::Engine.root.join("app/assets/builds/ahoy_panel.css")} \
|
15
|
-
-c #{AhoyPanel::Engine.root.join("config/tailwind.config.js")} \
|
16
|
-
--minify \
|
17
|
-
-w"
|
18
|
-
end
|
19
|
-
end
|