Code Monkey home page Code Monkey logo

v-plausible's Introduction

productdevbook

Development

Setup

pnpm i # Install dependencies

Commands

pnpm dev # Start dev server
pnpm lint # Lint
pnpm fix # Fix lint errors

test

v-plausible's People

Contributors

mahmoudzohdi avatar productdevbook avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mahmoudzohdi

v-plausible's Issues

can't install the packge with node16

Describe the bug

try ti install the package while you are using node16, you will get this error

npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "=>3.3.0" of package "vue@=>3.3.0": Tags may not have any characters that encodeURIComponent encodes.
Screenshot 2023-09-06 at 8 13 49 AM

but it's working fine with node14

Reproduction

.

System Info

System:
    OS: macOS 13.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 66.61 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v16.19.1/bin/npm
  Browsers:
    Chrome: 116.0.5845.140
    Safari: 16.6

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

POST information to wrong URL

Describe the bug

The POST call should be made to
host/api/event instead its making the call to host/stats/api/event because of that its not able to shoot insights on plausible

My plausbile init

const plausible = createPlausible({
  init: {
    domain: 'nimitsavant.me',
    apiHost: 'https://ana.idta.in/stats',
    trackLocalhost: true,
  },
  settings: {
    enableAutoOutboundTracking: true,
    enableAutoPageviews: true,
  },
  partytown: false,
})```

### Reproduction

Added normal https://ana.idta.in as apiHost and nimitsavant.me

### System Info

```Shell
System:
    OS: Windows 11 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
    Memory: 698.68 MB / 7.86 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.12 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (121.0.2277.112)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v3
  • davelosert/vitest-coverage-report-action v2
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v3
npm
package.json
  • @nuxt/kit ^3.7.4
  • defu ^6.1.2
  • plausible-tracker ^0.3.8
  • @antfu/eslint-config 1.0.0-beta.18
  • @nuxt/module-builder ^0.5.2
  • @nuxt/schema ^3.7.4
  • @nuxt/test-utils ^3.7.4
  • @vitejs/plugin-vue ^4.4.0
  • @vitest/coverage-v8 ^0.34.6
  • @vue-macros/volar ^0.16.0
  • @vue/test-utils ^2.4.1
  • bumpp ^9.2.0
  • eslint 8.50.0
  • happy-dom ^12.8.0
  • jsdom ^22.1.0
  • typescript ^5.2.2
  • unbuild ^2.0.0
  • unconfig ^0.3.11
  • unplugin-vue-macros ^2.6.1
  • vite ^4.4.10
  • vite-plugin-dts ^3.6.0
  • vitest ^0.34.6
  • vue ^3.3.4
  • vue ^3.3.4
playground-nuxt/package.json
  • nuxt ^3.7.4
playground-vue/package.json
  • vue ^3.3.4
  • @vitejs/plugin-vue ^4.3.4
  • typescript ^5.2.2
  • vite ^4.4.9
  • vue-tsc ^1.8.15

  • Check this box to trigger a request for Renovate to run again on this repository

Incorrect value for the "data-domain" attribute of the script in the header

Describe the bug

Currently the plugin is setting the script in the page header with the wrong value of the "data-domain" attribute. It is actually set as the url of the api set in the "plausible.init.apiHost" option of the plugin options and not in the "plausible.init.domain" option.

Because of this, the statistics do not appear in the plausible dashboard as this attribute has an incorrect value.

Script generate by plugin

image

Script generated by plausible dashboard

image

Options

  plausible: {
    init: {
      apiHost: 'https://analytics.naeko.moe',
      trackLocalhost: false,
      domain: 'https://next.naeko.moe',
    },
    settings: {
      enableAutoPageviews: true,
      enableAutoOutboundTracking: true,
    },
  }

Reproduction

https://next.naeko.moe

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 6.08 GB / 15.74 GB
  Binaries:
    Node: 20.1.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.5.1 - C:\Program Files\nodejs\yarn.CMD
    npm: 9.6.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.50)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

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.