ember-tribe 1.2.4 → 1.2.8

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.
@@ -0,0 +1,4 @@
1
+ import Route from '@ember/routing/route';
2
+ import * as bootstrap from 'bootstrap';
3
+
4
+ export default class ApplicationRoute extends Route {}
@@ -0,0 +1,36 @@
1
+ import Service from '@ember/service';
2
+ import { action } from '@ember/object';
3
+ import { tracked } from '@glimmer/tracking';
4
+
5
+ export default class CookiesService extends Service {
6
+
7
+ @tracked days = 365;
8
+
9
+ @action
10
+ setCookie(name, value) {
11
+ var expires = "";
12
+
13
+ var date = new Date();
14
+ date.setTime(date.getTime() + (this.days*24*60*60*1000));
15
+ expires = "; expires=" + date.toUTCString();
16
+
17
+ document.cookie = name + "=" + (value || "") + expires + "; path=/";
18
+ }
19
+
20
+ @action
21
+ getCookie(name) {
22
+ var nameEQ = name + "=";
23
+ var ca = document.cookie.split(';');
24
+ for(var i=0;i < ca.length;i++) {
25
+ var c = ca[i];
26
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
27
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
28
+ }
29
+ return null;
30
+ }
31
+
32
+ @action
33
+ eraseCookie(name) {
34
+ document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
35
+ }
36
+ }
@@ -1,15 +1,7 @@
1
- {{page-title "Index"}}
2
-
3
1
  <section class="flame-bg d-flex align-items-center justify-content-center">
4
2
  <div class="py-6 container px-0 text-center text-dark">
5
3
  <img src="/assets/img/flame.png" width="200">
6
4
  </div>
7
5
  </section>
8
6
 
9
- <!--
10
- {{@model.schema.headmeta_title}}
11
- This transparent pixel can initiate javascript onload function
12
- <img src="/assets/img/pixel-onload.png" alt="pixel-loader" {{on "load" this.loadSomething}} class="d-none">
13
- -->
14
-
15
7
  {{outlet}}
@@ -28,10 +28,12 @@ module.exports = {
28
28
  { name: 'ember-click-outside' },
29
29
  { name: 'ember-web-app' },
30
30
  { name: 'tracked-built-ins' },
31
+ { name: 'ember-keyboard' },
31
32
  { name: 'ember-animated' }, ],
32
33
  }).then(() => {
33
34
  return this.addPackagesToProject([
34
35
  { name: 'bootstrap' },
36
+ { name: '@popperjs/core' },
35
37
  { name: 'animate.css' },
36
38
  { name: 'video.js' },
37
39
  { name: 'swiper' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-tribe",
3
- "version": "1.2.4",
3
+ "version": "1.2.8",
4
4
  "description": "The default blueprint for using Tribe within EmberJS.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4
-
5
- module.exports = function (defaults) {
6
- let app = new EmberApp(defaults, {
7
- // Add options here
8
- });
9
-
10
- // Use `app.import` to add additional libraries to the generated
11
- // output files.
12
- //
13
- // If you need to use different assets in different
14
- // environments, specify an object as the first parameter. That
15
- // object's keys should be the environment name and the values
16
- // should be the asset to use in that environment.
17
- //
18
- // If the library that you are including contains AMD or ES6
19
- // modules that you would like to import into your application
20
- // please specify an object with the list of modules as keys
21
- // along with the exports of each module as its value.
22
-
23
- app.import('node_modules/bootstrap/dist/js/bootstrap.bundle.min.js');
24
-
25
- app.import('public/assets/css/custom.css');
26
- app.import('public/assets/js/custom.js');
27
-
28
- return app.toTree();
29
- };