This repository has been archived by the owner on Jul 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Davis
committed
Oct 23, 2016
1 parent
e5b4d7b
commit f7fe8ca
Showing
36 changed files
with
1,177 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,36 @@ | ||
{ | ||
"extends": "eslint-config-airbnb", | ||
"rules": { | ||
"import/no-unresolved": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }], | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"import/extensions": ["error", "never"] | ||
}, | ||
"env": { | ||
"jquery": true | ||
}, | ||
"globals": { | ||
"app": false, | ||
"m": false | ||
} | ||
} | ||
"extends": "eslint-config-airbnb", | ||
"rules": { | ||
"class-methods-use-this": "off", | ||
"func-names": "off", | ||
"no-param-reassign": "off", | ||
"import/no-unresolved": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"import/extensions": ["error", "never"], | ||
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }], | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"react/sort-comp": ["error", { | ||
"order": [ | ||
"/^constructor$/", | ||
"/^init$/", | ||
"/^initProps$/", | ||
"static-methods", | ||
"/^content$/", | ||
"/^view$/", | ||
"/^config$/", | ||
"everything-else", | ||
"/^onsubmit$/", | ||
"/^onerror$/" | ||
] | ||
}] | ||
}, | ||
"env": { | ||
"jquery": true, | ||
"browser": true | ||
}, | ||
"globals": { | ||
"app": false, | ||
"m": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/vendor | ||
composer.phar | ||
.DS_Store | ||
Thumbs.db | ||
bower_components | ||
node_modules | ||
*.js.old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"gulp": "^3.8.11", | ||
"flarum-gulp": "^0.2.0" | ||
"gulp": "^3.9.1", | ||
"flarum-gulp": "dav-is/flarum-gulp#patch-1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import SettingsModal from 'flarum/components/SettingsModal'; | ||
|
||
export default class AnimatedTagSettingsModal extends SettingsModal { | ||
export default class SocialProfileSettingsModal extends SettingsModal { | ||
className() { | ||
return 'AnimatedTagSettingsModal Modal--small'; | ||
return 'SocialProfileSettingsModal Modal--small'; | ||
} | ||
|
||
title() { | ||
return app.translator.trans('davis-socialprofile.admin.test'); | ||
} | ||
|
||
form() { | ||
return [ | ||
return ( | ||
<div className="Form-group"> | ||
<label>{app.translator.trans('davis-socialprofile.admin.test')}</label> | ||
<input type="text" className="FormControl" bidi={this.setting('davis.socialprofile.test')}></input> | ||
<label htmlFor="test">{app.translator.trans('davis-socialprofile.admin.test')}</label> | ||
<input name="test" type="text" className="FormControl" bidi={this.setting('davis.socialprofile.test')} /> | ||
</div> | ||
]; | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { extend } from 'flarum/extend'; | ||
import app from 'flarum/app'; | ||
import SocialProfileSettingsModal from 'Davis/SocialProfile/components/SocialProfileSettingsModal'; | ||
|
||
app.initializers.add('Davis-SocialProfile', app => { | ||
//app.extensionSettings['davis-socialprofile'] = () => app.modal.show(new SocialProfileSettingsModal()); | ||
app.initializers.add('Davis-SocialProfile', () => { | ||
|
||
}); |
Oops, something went wrong.