chore: add mobile app

This commit is contained in:
2026-02-07 22:33:02 +01:00
parent db34640acc
commit e89384ad4e
29327 changed files with 3886944 additions and 12 deletions
+29
View File
@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2015, Espen Hovlandsdal
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+28
View File
@@ -0,0 +1,28 @@
# hyphenate-style-name
[![npm version](http://img.shields.io/npm/v/hyphenate-style-name.svg?style=flat-square)](https://www.npmjs.com/package/hyphenate-style-name)[![npm](https://img.shields.io/npm/dm/hyphenate-style-name.svg?style=flat-square)](https://www.npmjs.com/package/hyphenate-style-name)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/hyphenate-style-name.svg?style=flat-square)](https://bundlephobia.com/result?p=hyphenate-style-name)
Hyphenates a camelcased CSS property name. For example:
- `backgroundColor` => `background-color`
- `MozTransition` => `-moz-transition`
- `msTransition` => `-ms-transition`
- `color` => `color`
# Installation
```bash
$ npm install --save hyphenate-style-name
```
# Usage
```js
import hyphenateStyleName from 'hyphenate-style-name'
console.log(hyphenateStyleName('MozTransition')) // -moz-transition
```
# License
BSD-3-Clause licensed. See LICENSE.
+21
View File
@@ -0,0 +1,21 @@
'use strict';
/* eslint-disable no-var, prefer-template */
var uppercasePattern = /[A-Z]/g;
var msPattern = /^ms-/;
var cache = {};
function toHyphenLower(match) {
return '-' + match.toLowerCase()
}
function hyphenateStyleName(name) {
if (cache.hasOwnProperty(name)) {
return cache[name]
}
var hName = name.replace(uppercasePattern, toHyphenLower);
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
}
module.exports = hyphenateStyleName;
+6
View File
@@ -0,0 +1,6 @@
/**
* Hyphenates a camelcased CSS property name
*/
declare function hyphenateStyleName(name: string): string;
export = hyphenateStyleName;
+19
View File
@@ -0,0 +1,19 @@
/* eslint-disable no-var, prefer-template */
var uppercasePattern = /[A-Z]/g
var msPattern = /^ms-/
var cache = {}
function toHyphenLower(match) {
return '-' + match.toLowerCase()
}
function hyphenateStyleName(name) {
if (cache.hasOwnProperty(name)) {
return cache[name]
}
var hName = name.replace(uppercasePattern, toHyphenLower)
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
}
export default hyphenateStyleName
+52
View File
@@ -0,0 +1,52 @@
{
"name": "hyphenate-style-name",
"version": "1.1.0",
"description": "Hyphenates a camelcased CSS property name",
"main": "index.cjs.js",
"module": "index.js",
"types": "index.d.ts",
"sideEffects": false,
"scripts": {
"build": "rollup --input index.js --file index.cjs.js --format cjs",
"coverage": "nyc tape -- test/**/*.test.js",
"lint": "eslint . --ignore-path .gitignore",
"test": "tape test/**/*.test.js",
"precoverage": "npm run build",
"pretest": "npm run lint && npm run build",
"prepublishOnly": "npm run build"
},
"files": [
"index.js",
"index.cjs.js",
"index.d.ts"
],
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/rexxars/hyphenate-style-name.git"
},
"keywords": [
"hyphenate",
"style",
"css",
"camelcase"
],
"author": "Espen Hovlandsdal <espen@hovlandsdal.com>",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/rexxars/hyphenate-style-name/issues"
},
"homepage": "https://github.com/rexxars/hyphenate-style-name#readme",
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-sanity": "^7.1.2",
"prettier": "^3.2.5",
"rollup": "^4.17.2",
"semantic-release": "^23.1.1",
"tape": "^5.7.5"
}
}