Skip to content

Commit

Permalink
Additional pre-commit hooks (#1428)
Browse files Browse the repository at this point in the history
* add 1st-party langauge agnnostic pre-commit hooks

* white space fixes from pre-commit run -av

* fix CI test/plausible_web/controllers/stats_controller_test.exs#L153

* Revert "fix CI test/plausible_web/controllers/stats_controller_test.exs#L153"

This reverts commit 85c9450.

* git checkout 94f476e~1 -- priv/ref_inspector priv/ua_inspector
  • Loading branch information
janosh committed Nov 3, 2021
1 parent 578b8fa commit e7593ce
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitlab/build-scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ elif [ "$1" = 'db' ]; then
fi

exec "$@"

14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ repos:
- id: prettier
files: "assets/js|assets/css"
args: [--config, assets/.prettierrc.json]

- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: 'f792d6b'
hooks:
- id: stylelint
additional_dependencies:
- stylelint@13.2.1
- stylelint-config-standard@20.0.0

- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.15.0'
hooks:
Expand All @@ -30,3 +32,15 @@ repos:
rev: v1.0.0
hooks:
- id: mix-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: priv/tracker/js
- id: mixed-line-ending
- id: trailing-whitespace
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We are dedicated to making web analytics more privacy-friendly. Our mission is t

### Why Plausible?

Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 4,000+ paying subscribers to deliver their website and business insights:
Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 4,000+ paying subscribers to deliver their website and business insights:

- **Clutter Free**: Plausible Analytics provides [simple web analytics](https://plausible.io/simple-web-analytics) and it cuts through the noise. No layers of menus, no need for custom reports. Get all the important insights on one single page. No training necessary.
- **GDPR/CCPA/PECR compliant**: Measure traffic, not individuals. No personal data or IP addresses are ever stored in our database. We don't use cookies or any other persistent idenfitiers. [Read more about our data policy](https://plausible.io/data-policy)
Expand All @@ -35,9 +35,9 @@ We choose the subscription business model rather than the business model of surv

Yes, Plausible is fully [open source web analytics](https://plausible.io/open-source-website-analytics).

We have a free as in beer [Plausible Analytics Self-Hosted](https://plausible.io/self-hosted-web-analytics) solution. It’s exactly the same product as our Cloud solution with a less frequent release schedule (think of it as a long term support release).
We have a free as in beer [Plausible Analytics Self-Hosted](https://plausible.io/self-hosted-web-analytics) solution. It’s exactly the same product as our Cloud solution with a less frequent release schedule (think of it as a long term support release).

Bug fixes and new features are released to the cloud version several times per week. Features are battle-tested in the cloud which allows us to fix any bugs before the general self-hosted release. Every six months we combine all the changes into a new self-hosted release.
Bug fixes and new features are released to the cloud version several times per week. Features are battle-tested in the cloud which allows us to fix any bugs before the general self-hosted release. Every six months we combine all the changes into a new self-hosted release.

The main difference between the two is that the self-hosted version you have to install, host and manage yourself on your own infrastructure while the Cloud version we manage everything for your ease and convenience. Here's the overview of all the differences:

Expand All @@ -51,10 +51,10 @@ The main difference between the two is that the self-hosted version you have to

Interested in self-hosting Plausible on your server? Take a look at our [self-hosting installation instructions](https://plausible.io/docs/self-hosting).

Plausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a [community supported forum](https://github.com/plausible/analytics/discussions/categories/self-hosted-support) where you can ask for help.
Plausible Self-Hosted is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a [community supported forum](https://github.com/plausible/analytics/discussions/categories/self-hosted-support) where you can ask for help.

If you choose to self-host Plausible you can [become a sponsor](https://github.com/sponsors/plausible) which is a great way to give back to the community and to contribute to the long-term sustainability of the project. Simply put, we treat sponsors like paying customers which means you can receive guaranteed priority support.

### Technology

Plausible Analytics is a standard Elixir/Phoenix application backed by a PostgreSQL database for general data and a Clickhouse
Expand Down
1 change: 0 additions & 1 deletion assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,3 @@ iframe[hidden] {
left: 0 !important;
}
}

1 change: 0 additions & 1 deletion assets/js/dashboard/fade-in.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ export default function FadeIn({className, show, children}) {
</div>
)
}

1 change: 0 additions & 1 deletion assets/js/dashboard/stats/devices/browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,3 @@ export default class Browsers extends React.Component {
)
}
}

1 change: 0 additions & 1 deletion assets/js/dashboard/stats/devices/operating-systems.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@ export default class OperatingSystems extends React.Component {
)
}
}

10 changes: 5 additions & 5 deletions assets/js/dashboard/stats/more-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default function MoreLink({site, list, endpoint}) {
<svg
className="feather mr-1"
style={{marginTop: '-2px'}}
xmlns="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
{/* eslint-disable-next-line max-len */}
Expand Down
2 changes: 1 addition & 1 deletion priv/referer_favicon_domains.json

Large diffs are not rendered by default.

0 comments on commit e7593ce

Please sign in to comment.