vanity-ui 2023.02.18.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 245d3904c55c11e24509c8a6eee8fe6c398cbd616c20e1784714545beb737ca0
4
+ data.tar.gz: 71bc845a4ca92045984e81e93828831a17148f28a76fd8d250b9cb24509f02bb
5
+ SHA512:
6
+ metadata.gz: 95912d9feb1d48aa7162827710d516192bd879bb309b499c7bb369ad6c01362b25a87bda0af392ff6a658d966232add9e74086e2423b31653a30ea39fc8050cc
7
+ data.tar.gz: 142297fc80c86f8823f1718d7b34824ded51d62b948b5b38ac614594eb2c6460e44e61c02d835b6f133230f16f3dfe21d90cde117764700b27a1134302e2e460
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2023 Jesse Shawl
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Vanity::Ui
2
+
3
+ Measure user activity
4
+
5
+ ## Usage
6
+
7
+ Visit `/vanity-ui` in a browser.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+
14
+ ```ruby
15
+ gem "vanity-ui"
16
+ ```
17
+
18
+ And then execute:
19
+ ```bash
20
+ $ bundle
21
+ ```
22
+
23
+ Or install it yourself as:
24
+ ```bash
25
+ $ gem install vanity-ui
26
+ ```
27
+
28
+ add `mount Vanity::Ui::Engine => "/vanity-ui"` to `config/routes.rb`.
29
+
30
+ ## Contributing
31
+
32
+ Don't contribute or else.
33
+
34
+ ## License
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "bundler/setup"
2
+
3
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
5
+
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
16
+
17
+
18
+ body{
19
+ color: blue;
20
+ }
@@ -0,0 +1,11 @@
1
+ module Vanity
2
+ module Ui
3
+ class ApplicationController < ActionController::Base
4
+ def index
5
+ end
6
+ def new
7
+ render "new"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ module Vanity
2
+ module Ui
3
+ module ApplicationHelper
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Vanity
2
+ module Ui
3
+ class ApplicationJob < ActiveJob::Base
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,8 @@
1
+ module Vanity
2
+ module Ui
3
+ class ApplicationMailer < ActionMailer::Base
4
+ default from: "from@example.com"
5
+ layout "mailer"
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module Vanity
2
+ module Ui
3
+ class ApplicationRecord < ActiveRecord::Base
4
+ self.abstract_class = true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Vanity ui</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+ <style>
8
+ html, body {
9
+ font-family: sans-serif;
10
+ }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <h1>Vanity UI</h1>
15
+ <hr />
16
+ <section>
17
+ <%= yield %>
18
+ </section>
19
+ </body>
20
+ </html>
@@ -0,0 +1,32 @@
1
+ <style>
2
+ svg {
3
+ border: 5px solid darkorchid;
4
+ border-radius: 5px;
5
+ margin: 1rem;
6
+ }
7
+ svg path {
8
+ stroke-width: 5;
9
+ fill: lavender;
10
+ stroke: darkorchid;
11
+ stroke-linejoin: round;
12
+ }
13
+ </style>
14
+
15
+ <div class="line-chart">
16
+ <svg namespace="xmlns:http://www.w3.org/2000/svg">
17
+ <path d="M 0,150 L 10,10 L 20,20" />
18
+ </svg>
19
+ </div>
20
+
21
+ <script>
22
+ const path = document.querySelector("path");
23
+
24
+ let d = "M 0,110 ";
25
+ for (let i = 0; i < 30; i++) {
26
+ const r = Math.floor(Math.random() * 80) + 40;
27
+ d += `L ${(i + 1) * 10},${r} `;
28
+ }
29
+ d += " L 350,200 L -30,200 Z";
30
+ path.setAttribute("d", d);
31
+
32
+ </script>
@@ -0,0 +1,3 @@
1
+ <h2>🌎 Public Home Page</h2>
2
+
3
+ <%= render "line_chart" %>
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Vanity::Ui::Engine.routes.draw do
2
+ root 'application#index'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :vanity_ui do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,7 @@
1
+ module Vanity
2
+ module Ui
3
+ class Engine < ::Rails::Engine
4
+ isolate_namespace Vanity::Ui
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Vanity
2
+ module Ui
3
+ VERSION = "2023.02.18-alpha"
4
+ end
5
+ end
data/lib/vanity/ui.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "vanity/ui/version"
2
+ require "vanity/ui/engine"
3
+
4
+ module Vanity
5
+ module Ui
6
+ # Your code goes here...
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vanity-ui
3
+ version: !ruby/object:Gem::Version
4
+ version: 2023.02.18.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Jesse Shawl
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.4
27
+ description: Visualize user activity in your new SaaS
28
+ email:
29
+ - jesse@jesse.sh
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - Rakefile
37
+ - app/assets/stylesheets/vanity/ui/application.css
38
+ - app/controllers/vanity/ui/application_controller.rb
39
+ - app/helpers/vanity/ui/application_helper.rb
40
+ - app/jobs/vanity/ui/application_job.rb
41
+ - app/mailers/vanity/ui/application_mailer.rb
42
+ - app/models/vanity/ui/application_record.rb
43
+ - app/views/layouts/vanity/ui/application.html.erb
44
+ - app/views/vanity/ui/application/_line_chart.html.erb
45
+ - app/views/vanity/ui/application/index.html.erb
46
+ - config/routes.rb
47
+ - lib/tasks/vanity/ui_tasks.rake
48
+ - lib/vanity/ui.rb
49
+ - lib/vanity/ui/engine.rb
50
+ - lib/vanity/ui/version.rb
51
+ homepage: https://github.com/jshawl/vanity-ui
52
+ licenses:
53
+ - MIT
54
+ metadata:
55
+ homepage_uri: https://github.com/jshawl/vanity-ui
56
+ source_code_uri: https://github.com/jshawl/vanity-ui
57
+ changelog_uri: https://github.com/jshawl/vanity-ui/
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">"
70
+ - !ruby/object:Gem::Version
71
+ version: 1.3.1
72
+ requirements: []
73
+ rubygems_version: 3.4.1
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: UI for User Metrics
77
+ test_files: []