Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelFrias97 committed May 9, 2024
1 parent 944c20b commit e2d83df
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 40 deletions.
20 changes: 0 additions & 20 deletions app/assets/javascripts/bali/controllers/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/assets/javascripts/bali/utils/use-click-outside.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isElementInViewport } from './domHelpers'
import { isElementInViewport } from 'bali/utils/domHelpers'

const defaultOptions = {
events: ['click', 'touchend'],
Expand Down
4 changes: 0 additions & 4 deletions app/components/bali/filters/controllers/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/components/bali/filters/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/components/bali/gantt_chart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useDispatch from 'bali/utils/use-dispatch'
import { toBool, toInt } from 'bali/utils/formatters'
import { addDaysToDate } from 'bali/utils/time'
import { patch } from '@rails/request.js'
import ConnectionLine from './connection_line'
import ConnectionLine from 'bali/gantt-chart/connection-line'

const TASK_NAME_PADDING = 8
const UPDATE_SCROLL_FREQUENCY = 500
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default async (_controller, _options = {}) => {
const { default: Mention } = await import('@tiptap/extension-mention')
const { default: suggestion } = await import('./suggestions/pages_options')
const { default: suggestion } = await import('bali/rich_text_editor/suggestions/pagesOptions')

const MentionExtensions = [
Mention.configure({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default async (controller, _options = {}) => {
// const { default: TaskItem } = await import('@tiptap/extension-task-item')
const { default: Text } = await import('@tiptap/extension-text')

const { default: lowlight } = await import('./lowlight')
const { default: lowlight } = await import('bali/rich_text_editor/lowlight')

const NodesExtensions = [
Blockquote,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default async (_controller, _options = {}) => {
const { default: SlashCommands } = await import('./extensions/slashCommands')
const { default: suggestion } = await import('./suggestions/commands_options')
const { default: SlashCommands } = await import('bali/rich_text_editor/extensions/slashCommands')
const { default: suggestion } = await import('bali/rich_text_editor/suggestions/commandsOptions')

const SlashCommandsExtension = [SlashCommands.configure({ suggestion })]

Expand Down
6 changes: 4 additions & 2 deletions spec/dummy/app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ import { ChartController } from 'bali/chart'
import { ClipboardController } from 'bali/clipboard'
import { DrawerController } from 'bali/drawer'
import { DropdownController } from 'bali/dropdown'
import { GanttChartController } from 'bali/gantt_chart'
import { HovercardController } from 'bali/hover_card'
import { GanttFoldableItemController } from 'bali/gantt-chart/foldable-item'
import { GanttChartController } from 'bali/gantt-chart'
import { HovercardController } from 'bali/hovercard'
import { LocationsMapController } from 'bali/locations_map'
import { ModalController } from 'bali/modal'
import { NavbarController } from 'bali/navbar'
Expand Down Expand Up @@ -66,6 +67,7 @@ application.register('chart', ChartController)
application.register('clipboard', ClipboardController)
application.register('drawer', DrawerController)
application.register('dropdown', DropdownController)
application.register('gantt-foldable-item', GanttFoldableItemController)
application.register('gantt-chart', GanttChartController)
application.register('hovercard', HovercardController)
application.register('locations-map', LocationsMapController)
Expand Down
6 changes: 4 additions & 2 deletions spec/dummy/config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@
pin 'bali/clipboard', to: 'bali/clipboard/index.js'
pin 'bali/drawer', to: 'bali/drawer/index.js'
pin 'bali/dropdown', to: 'bali/dropdown/index.js'
pin 'bali/gantt_chart', to: 'bali/gantt_chart/index.js'
pin 'bali/hover_card', to: 'bali/hover_card/index.js'
pin 'bali/gantt-chart/connection-line', to: 'bali/gantt_chart/connection_line.js'
pin 'bali/gantt-chart/foldable-item', to: 'bali/gantt_chart/gantt_foldable_line.js'
pin 'bali/gantt-chart', to: 'bali/gantt_chart/index.js'
pin 'bali/hovercard', to: 'bali/hover_card/index.js'
pin 'bali/locations_map', to: 'bali/locations_map/index.js'
pin 'bali/modal', to: 'bali/modal/index.js'
pin 'bali/navbar', to: 'bali/navbar/index.js'
Expand Down

0 comments on commit e2d83df

Please sign in to comment.