nuxt-modules / nuxt-modules/device

Add ability to manually parse user agents

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.x enhancement
Dominant language
TypeScript
Stars
1k
Forks
54
PR merge metrics
No merged PRs in 30d

Description

It would be cool if we could parse userAgents manually (E.g. I'm currently working on a site where you can see your sessions and it would be nice to provide a little icon. To find out the browser type I would like to use the $device api).

I think you just need to export the function, then we can all use it. Otherwise something like $device.parse(myUserAgent).isAndroid would be cool.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing $device API and the user-agent detection entry point in the Nuxt module. Compare exporting the current function with adding the proposed $device.parse(myUserAgent) API, then verify that manually supplied user agents produce the same device properties as the existing detection path.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.