Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

Commit e917199

Browse files
committed
initial import
0 parents  commit e917199

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2768
-0
lines changed

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"react-native"
4+
],
5+
"plugins": [
6+
"transform-decorators-legacy"
7+
]
8+
}

.eslintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"plugin:lodash/recommended",
5+
"plugin:flowtype/recommended",
6+
"airbnb"
7+
],
8+
"rules": {
9+
"class-methods-use-this": "off",
10+
"comma-dangle": ["warn", "never"],
11+
"import/prefer-default-export": "off",
12+
"max-len": "off",
13+
"no-underscore-dangle": "off",
14+
"react/jsx-filename-extension": "off",
15+
"react/prefer-stateless-function": "off",
16+
"react/sort-comp": "off",
17+
"semi": ["warn", "never"]
18+
},
19+
"plugins": [
20+
"import",
21+
"react",
22+
"react-native",
23+
"lodash",
24+
"flowtype"
25+
],
26+
"settings": {
27+
"import/resolver": {
28+
"babel-module": {}
29+
}
30+
},
31+
"globals": {
32+
"__DEV__": true
33+
}
34+
}

.flowconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[ignore]
2+
<PROJECT_ROOT>/React/.*
3+
<PROJECT_ROOT>/macos/.*
4+
<PROJECT_ROOT>/node_modules/react-native-macos/lib/.*
5+
<PROJECT_ROOT>/node_modules/react-native-macos/local-cli/.*
6+
<PROJECT_ROOT>/node_modules/react-native-macos/Libraries/.*
7+
8+
[include]
9+
10+
[libs]
11+
./flow
12+
#./node_modules/react-native-macos/Libraries/react-native/react-native-interface.js
13+
#./node_modules/react-native-macos/flow
14+
15+
[options]
16+
esproposal.class_instance_fields=enable
17+
esproposal.class_static_fields=enable
18+
esproposal.decorators=ignore
19+
experimental.strict_type_args=true
20+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
21+
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
22+
module.system=haste
23+
munge_underscores=true
24+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
25+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-2]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
26+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-2]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
27+
suppress_type=$FixMe
28+
suppress_type=$FlowFixMe
29+
suppress_type=$FlowIssue
30+
unsafe.enable_getters_and_setters=true

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
ModuleCache/
9+
*.pbxuser
10+
!default.pbxuser
11+
*.mode1v3
12+
!default.mode1v3
13+
*.mode2v3
14+
!default.mode2v3
15+
*.perspectivev3
16+
!default.perspectivev3
17+
xcuserdata
18+
*.xccheckout
19+
*.moved-aside
20+
DerivedData
21+
*.hmap
22+
*.ipa
23+
*.xcuserstate
24+
project.xcworkspace
25+
macos/info.plist
26+
27+
# Android/IJ
28+
#
29+
.idea
30+
.gradle
31+
local.properties
32+
33+
# node.js
34+
#
35+
node_modules/
36+
npm-debug.log
37+
38+
# BUCK
39+
buck-out/
40+
\.buckd/
41+
android/app/libs
42+
android/keystores/debug.keystore

.tern-project

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ecmaVersion": 6,
3+
"libs": [],
4+
"plugins": {
5+
"complete_strings": {},
6+
"node": {},
7+
"requirejs": {},
8+
"modules": {},
9+
"es_modules": {},
10+
"doc_comment": {
11+
"fullDocs": true
12+
}
13+
}
14+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Plex Music
2+
3+
![Screenshot](screenshot.png)

React/RCTImageDownloader/Cache.db

Whitespace-only changes.

flow/react-native-macos.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare module 'react-native-macos' {
2+
declare var exports: any;
3+
}

index.macos.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* eslint-disable no-console */
2+
3+
import mobx from 'mobx'
4+
import { AppRegistry } from 'react-native-macos'
5+
import App from './src/App'
6+
7+
AppRegistry.registerComponent('PlexMusic', () => App)
8+
9+
const style = 'color: #006d92; font-weight:bold;'
10+
const repeat = (str, times) => (new Array(times + 1)).join(str)
11+
const pad = (num, maxLength) => repeat('0', maxLength - num.toString().length) + num
12+
const formatTime = time => `${pad(time.getHours(), 2)}:${pad(time.getMinutes(), 2)}:${pad(time.getSeconds(), 2)}.${pad(time.getMilliseconds(), 3)}`
13+
14+
if (__DEV__) {
15+
console.ignoredYellowBox = ['Warning: In next release empty section headers will be rendered']
16+
17+
mobx.spy((event) => {
18+
if (event.type === 'action') {
19+
console.groupCollapsed(`Action @ ${formatTime(new Date())} ${event.name}`)
20+
console.log('%cType: ', style, event.type)
21+
console.log('%cName: ', style, event.name)
22+
console.log('%cTarget: ', style, event.target)
23+
console.log('%cArguments: ', style, event.arguments)
24+
console.groupEnd()
25+
}
26+
})
27+
}

macos/AppIcon.icns

92.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)