achilles 0.1.0 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51e520740708516c772ee1471e90480e4d2b13de55f0615d92fb4627a594c017
4
- data.tar.gz: 857aade6afdccdc0651764674c2771d1af60c93e449bb62293ce8caac9d33cd6
3
+ metadata.gz: e608754044dbae7232ab87fd3a22fa03442f981eee6f049e2837cca1688db921
4
+ data.tar.gz: 536cf192f098d9fb27b40da3173b43229fc5f214d029707aae59bf5bef711e58
5
5
  SHA512:
6
- metadata.gz: 0610ab82bfc5e28f191e14eaf0f780884ddd102963ff27003a106c8fb76564b8ca5aa4d5b6f4a43c20b3d8bc357897a05567cefb88c991e10c28f6d062dc27a3
7
- data.tar.gz: 470dbfe1077dc3f10c9d57c8f2756cc597e795b098eb3adf67e01a18ce125441c8be05c071da9400d13a65ecd5c410e4f88c7cb22ac865f2829bc5d8be71e2f6
6
+ metadata.gz: 5add5c1de1c4979cd42ed1718e72e635894b356b695901ad3e51b9577b37b557f78de7b0aebc5d74375ecb2c061afc37849466c5eecbcfe4ad21460cc9049828
7
+ data.tar.gz: 568fc4e820541696e7a42be31f4a2874eff8cccb76b82502aa4ccce4a5fd7c6f6bc15213a21cdaceae59174f799e305ebae4d6c7fc56aeba32212a534eedb3f9
@@ -0,0 +1,2 @@
1
+ //= link_directory ../../stylesheets/achilles .css
2
+ //= link_tree ../../../javascript .js
@@ -1,11 +1,11 @@
1
- import { AppConstants } from "common/src/achilles/application/app_constants";
2
- import { ComponentsRegistry } from "common/src/achilles/components/components_registry";
3
- import { ComponentParser } from "common/src/achilles/components/component_parser";
4
- import { ComponentsClassMapper } from "common/src/achilles/components/components_class_mapper";
5
- import { Page } from "common/src/achilles/page/page";
6
- import { Timezone } from "common/src/achilles/application/timezone/timezone";
7
- import { Turbo } from "common/src/achilles/application/hooks-manager/turbo";
8
- import { Observer } from "common/src/achilles/application/dom-mutation-observer/observer";
1
+ import { AppConstants } from "achilles/application/app_constants";
2
+ import { ComponentsRegistry } from "achilles/components/components_registry";
3
+ import { ComponentParser } from "achilles/components/component_parser";
4
+ import { ComponentsClassMapper } from "achilles/components/components_class_mapper";
5
+ import { Page } from "achilles/page/page";
6
+ import { Timezone } from "achilles/application/timezone/timezone";
7
+ import { Turbo } from "achilles/application/hooks-manager/turbo";
8
+ import { Observer } from "achilles/application/dom-mutation-observer/observer";
9
9
 
10
10
  // Application class/obj to drive all things for the web app
11
11
  class Application {
@@ -17,18 +17,19 @@ class Turbo {
17
17
  // Events registering
18
18
  // Turbolinks lifecycle ref: https://sevos.io/2017/02/27/turbolinks-lifecycle-explained.html
19
19
  // Render is not called on initial page load. So execute only once during page load
20
- $(document).one("turbo:load", () => {
20
+ $(document).on("turbo:load", () => {
21
+ console.log('[achilles] turbo load event')
21
22
  this._setupCallback();
22
23
  });
23
24
 
24
- // Render is called before each page transition. But its not called on initial page load. That's why we need 'load'
25
- $(document).on("turbo:render", () => {
26
- this._setupCallback();
27
- });
28
-
29
- $(document).on("turbo:before-render", () => {
30
- this._teardownCallback();
31
- });
25
+ // // Render is called before each page transition. But its not called on initial page load. That's why we need 'load'
26
+ // $(document).on("turbo:render", () => {
27
+ // this._setupCallback();
28
+ // });
29
+ //
30
+ // $(document).on("turbo:before-render", () => {
31
+ // this._teardownCallback();
32
+ // });
32
33
  }
33
34
  }
34
35
 
@@ -1,4 +1,4 @@
1
- import { AppConstants } from "common/src/achilles/application/app_constants";
1
+ import { AppConstants } from "achilles/application/app_constants";
2
2
 
3
3
  // Parse the entire html dom and register components if not already registered
4
4
  class ComponentParser {
@@ -1,4 +1,4 @@
1
- import { AppConstants } from "common/src/achilles/application/app_constants";
1
+ import { AppConstants } from "achilles/application/app_constants";
2
2
 
3
3
  // Contains all the registered components in a page at the current moment
4
4
  class ComponentsRegistry {
@@ -1,4 +1,4 @@
1
- import { ComponentBase } from "common/src/achilles/components/component_base";
1
+ import { ComponentBase } from "achilles/components/component_base";
2
2
 
3
3
  class Page extends ComponentBase {}
4
4
 
@@ -1,3 +1,3 @@
1
1
  module Achilles
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: achilles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jey Geethan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -34,7 +34,7 @@ files:
34
34
  - MIT-LICENSE
35
35
  - README.md
36
36
  - Rakefile
37
- - app/assets/config/achilles_manifest.js
37
+ - app/assets/config/achilles/manifest.js
38
38
  - app/assets/stylesheets/achilles/application.css
39
39
  - app/controllers/achilles/application_controller.rb
40
40
  - app/helpers/achilles/application_helper.rb
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.2.3
84
+ rubygems_version: 3.3.7
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Js library as an alternative to stimulus
@@ -1 +0,0 @@
1
- //= link_directory ../stylesheets/achilles .css