Code Monkey home page Code Monkey logo

vuejs-admin-dashboard-template's People

Contributors

pasqualevitiello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vuejs-admin-dashboard-template's Issues

'default' is not exported by ./src/css/tailwind.config.js

Hello, npm run build outputs an error, any idea how to solve ? Thanks @pasqualevitiello

  'default' is not exported by ./src/css/tailwind.config.js, imported by src/utils/Utils.js
  file: /Users/zenati/development/vuejs-admin-dashboard-template/src/utils/Utils.js:2:7
  1: import resolveConfig from 'tailwindcss/resolveConfig';
  2: import tailwindConfigFile from '@tailwindConfig';
            ^
  3: 
  4: export const tailwindConfig = () => {
  error during build:
  Error: 'default' is not exported by ./src/css/tailwind.config.js, imported by src/utils/Utils.js

Darkmode?

Hi!
I'm a real fan of your templates but the only thing that keeps me from buying the admin template is the lack of darkmode.

Do you have any plans in the future to add this to the admin template of Mosaic?

Cannot read properties of undefined (reading 'labels') in DoughnutChart

image

Hi I have a little problem with my chart js, so I want to implement DoughnutChart

and I have configured it according to digithub, but the labels under the chart do not appear and the label undefined error appears.

I didn't change anything in the component charts and partials, I just copied and pasted the existing code.

ini adalah file DoughnutChart.vue

    <script> import { ref, onMounted, onUnmounted } from 'vue' import { Chart, DoughnutController, ArcElement, TimeScale, Tooltip, } from 'chart.js' import 'chartjs-adapter-moment' // Import utilities import { tailwindConfig } from '@/utils/Utils' import { data } from 'autoprefixer' Chart.register(DoughnutController, ArcElement, TimeScale, Tooltip) export default { name: 'DoughnutChart', props: ['data', 'width', 'height'], setup(props) { const canvas = ref(null) const legend = ref(null) let chart = null onMounted(() => { const ctx = canvas.value chart = new Chart(ctx, { type: 'doughnut', data: props.data, options: { cutout: '80%', layout: { padding: 24, }, plugins: { legend: { display: false, }, }, interaction: { intersect: false, mode: 'nearest', }, animation: { duration: 500, }, maintainAspectRatio: false, resizeDelay: 200, }, plugins: [{ id: 'htmlLegend', afterUpdate(c, args, options) { const ul = legend.value if (!ul) return 'ok' // Remove old legend items while (ul.firstChild) { ul.firstChild.remove() } // Reuse the built-in legendItems generator const items = c.options.plugins.legend.labels.generateLabels(c.data) console.log(c.data) items.forEach((item) => { const li = document.createElement('li') li.style.margin = tailwindConfig().theme.margin[1] // Button element const button = document.createElement('button') button.classList.add('btn-xs') button.style.backgroundColor = tailwindConfig().theme.colors.white button.style.borderWidth = tailwindConfig().theme.borderWidth[1] button.style.borderColor = tailwindConfig().theme.colors.slate[200] button.style.color = tailwindConfig().theme.colors.slate[500] button.style.boxShadow = tailwindConfig().theme.boxShadow.md button.style.opacity = item.hidden ? '.3' : '' button.onclick = () => { c.toggleDataVisibility(item.index, !item.index) c.update() } // Color box const box = document.createElement('span') box.style.display = 'block' box.style.width = tailwindConfig().theme.width[2] box.style.height = tailwindConfig().theme.height[2] box.style.backgroundColor = item.fillStyle box.style.borderRadius = tailwindConfig().theme.borderRadius.sm box.style.marginRight = tailwindConfig().theme.margin[1] box.style.pointerEvents = 'none' // Label const label = document.createElement('span') label.style.display = 'flex' label.style.alignItems = 'center' const labelText = document.createTextNode(item.text) label.appendChild(labelText) li.appendChild(button) button.appendChild(box) button.appendChild(label) ul.appendChild(li) }) }, }], }) }) onUnmounted(() => chart.destroy()) return { canvas, legend, } } } </script>

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.