Skip to content

Commit

Permalink
reup package.json and lock, use monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Jan 26, 2022
1 parent 99d42ef commit 5937e15
Show file tree
Hide file tree
Showing 25 changed files with 56 additions and 106 deletions.
111 changes: 30 additions & 81 deletions cmd/dcrdata/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion cmd/dcrdata/package.json
Expand Up @@ -28,6 +28,8 @@
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.16.11",
"@hotwired/stimulus": "^3.0.1",
"@hotwired/stimulus-webpack-helpers": "^1.0.1",
"babel-loader": "^8.2.3",
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.5.1",
Expand All @@ -42,7 +44,6 @@
"mousetrap": "^1.6.5",
"sass": "^1.49.0",
"sass-loader": "^12.4.0",
"stimulus": "^1.1.1",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"stylelint-webpack-plugin": "^3.1.1",
Expand Down
4 changes: 2 additions & 2 deletions cmd/dcrdata/public/index.js
Expand Up @@ -2,8 +2,8 @@
import 'regenerator-runtime/runtime'
/* global require */
import ws from './js/services/messagesocket_service'
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import { Application } from '@hotwired/stimulus'
import { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers'
import { darkEnabled } from './js/services/theme_service'
import globalEventBus from './js/services/event_bus_service'

Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/address_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { isEmpty } from 'lodash-es'
import dompurify from 'dompurify'
import { getDefault } from '../helpers/module_helper'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/agenda_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { barChartPlotter } from '../helpers/chart_helper'
import { getDefault } from '../helpers/module_helper'
import humanize from '../helpers/humanize_helper'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/agendas_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import globalEventBus from '../services/event_bus_service'
import { darkEnabled } from '../services/theme_service'
import { VoteMeter, ProgressMeter } from '../helpers/meters.js'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/attackcost_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import TurboQuery from '../helpers/turbolinks_helper'
import { getDefault } from '../helpers/module_helper'
import globalEventBus from '../services/event_bus_service'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/blocklist_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import globalEventBus from '../services/event_bus_service'
import humanize from '../helpers/humanize_helper'

Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/charts_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { map, assign, merge } from 'lodash-es'
import Zoom from '../helpers/zoom_helper'
import { darkEnabled } from '../services/theme_service'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/clipboard_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'

export const copyIcon = () => {
const copyIcon = document.createElement('span')
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/connection_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import ws from '../services/messagesocket_service'

export default class extends Controller {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/homepage_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { each } from 'lodash-es'
import dompurify from 'dompurify'
import humanize from '../helpers/humanize_helper'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/market_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import TurboQuery from '../helpers/turbolinks_helper'
import { getDefault } from '../helpers/module_helper'
import { requestJSON } from '../helpers/http'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/mempool_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { map, each } from 'lodash-es'
import dompurify from 'dompurify'
import humanize from '../helpers/humanize_helper'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/menu_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { closeMenu, toggleSun } from '../services/theme_service'

function closest (el, id) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/newblock_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import globalEventBus from '../services/event_bus_service'

export default class extends Controller {
Expand Down
@@ -1,5 +1,5 @@
/* global Turbolinks */
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import Url from 'url-parse'

export default class extends Controller {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/proposal_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import { MiniMeter } from '../helpers/meters.js'
import { darkEnabled } from '../services/theme_service'
import globalEventBus from '../services/event_bus_service'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/rawtx_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import ws from '../services/messagesocket_service'
import { fadeIn } from '../helpers/animation_helper'

Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/search_controller.js
@@ -1,5 +1,5 @@
/* global Turbolinks */
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
execute (e) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/status_controller.js
@@ -1,5 +1,5 @@
/* global Turbolinks */
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import dompurify from 'dompurify'
import ws from '../services/messagesocket_service'
import globalEventBus from '../services/event_bus_service'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/ticketpool_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import ws from '../services/messagesocket_service'
import { barChartPlotter } from '../helpers/chart_helper'
import { getDefault } from '../helpers/module_helper'
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/time_controller.js
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import humanize from '../helpers/humanize_helper'
import globalEventBus from '../services/event_bus_service'

Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/public/js/controllers/tx_controller.js
@@ -1,6 +1,6 @@
import txInBlock from '../helpers/block_helper'
import globalEventBus from '../services/event_bus_service'
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import humanize from '../helpers/humanize_helper'

export default class extends Controller {
Expand Down
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus'
import { Controller } from '@hotwired/stimulus'
import dompurify from 'dompurify'
import globalEventBus from '../services/event_bus_service'
import ws from '../services/messagesocket_service'
Expand Down

0 comments on commit 5937e15

Please sign in to comment.