Skip to content

Commit

Permalink
fix(frontend): update ember-power-calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 12, 2024
1 parent 71a98aa commit 67837ff
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 122 deletions.
7 changes: 5 additions & 2 deletions frontend/app/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import Application from "@ember/application";
import * as Sentry from "@sentry/ember";
import loadInitializers from "ember-load-initializers";
import { registerDateLibrary } from "ember-power-calendar";
import DateUtils from "ember-power-calendar-moment";
import Resolver from "ember-resolver";
import fastRedact from "fast-redact";
import config from "timed/config/environment";
// simplebar setup
// see components/scroll-container for further usage

import "simplebar";
import "simplebar/dist/simplebar.css";

Expand Down Expand Up @@ -58,6 +59,8 @@ if (config["@sentry/ember"]) {

// simplebar setup end

registerDateLibrary(DateUtils);

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/components/sy-calendar/component.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { action } from "@ember/object";
import PowerCalendarComponent from "ember-power-calendar/components/power-calendar";
import Component from "@glimmer/component";
import moment from "moment";

const CURRENT_YEAR = moment().year();

const YEARS_IN_FUTURE = 5;

export default class SyCalendar extends PowerCalendarComponent {
export default class SyCalendar extends Component {
months = moment.months();

years = [...new Array(40).keys()].map(
Expand Down
44 changes: 0 additions & 44 deletions frontend/app/components/sy-calendar/styles.scss

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const EmberApp = require("ember-cli/lib/broccoli/ember-app");

module.exports = function (defaults) {
const app = new EmberApp(defaults, {
babel: {
plugins: [
require.resolve("ember-concurrency/async-arrow-task-transform"),
],
},
sassOptions: {
onlyIncluded: true,
},
Expand Down
9 changes: 3 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"ember-cli-update": "1.0.1",
"ember-component-css": "0.8.1",
"ember-composable-helpers": "5.0.0",
"ember-concurrency": "^2.3.7",
"ember-concurrency": "^4.0.2",
"ember-data": "~4.11.3",
"ember-decorators": "6.1.1",
"ember-event-helpers": "^0.1.1",
Expand All @@ -86,8 +86,8 @@
"ember-moment": "9.0.1",
"ember-notify": "6.0.4",
"ember-page-title": "7.0.0",
"ember-power-calendar": "0.18.0",
"ember-power-calendar-moment": "0.2.0",
"ember-power-calendar": "^1.0.2",
"ember-power-calendar-moment": "^1.0.2",
"ember-power-select": "6.0.1",
"ember-qunit": "6.2.0",
"ember-resolver": "10.0.0",
Expand Down Expand Up @@ -139,9 +139,6 @@
"edition": "octane"
},
"pnpm": {
"overrides": {
"ember-concurrency": "^2.1.1"
},
"peerDependencyRules": {
"ignoreMissing": [
"@babel/core",
Expand Down
Loading

0 comments on commit 67837ff

Please sign in to comment.