You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
side menu
This commit is contained in:
@ -1,90 +1,3 @@
|
||||
import { main } from 'src/main.js';
|
||||
|
||||
main();
|
||||
|
||||
|
||||
// let defaultState = {
|
||||
// 'myButtonLabel': 'click',
|
||||
// 'counter': 0,
|
||||
// }
|
||||
|
||||
// function shallowcopy(a) {
|
||||
// return Object.assign({}, a);
|
||||
// }
|
||||
|
||||
// let store = createStore(reducer, defaultState);
|
||||
|
||||
// function reducer(state, action) {
|
||||
// switch (action.type) {
|
||||
|
||||
// case 'SET_BUTTON_NAME':
|
||||
|
||||
// var state = shallowcopy(state);
|
||||
// state.myButtonLabel = action.name;
|
||||
// return state;
|
||||
|
||||
// case 'INC_COUNTER':
|
||||
|
||||
// var state = shallowcopy(state);
|
||||
// state.counter++;
|
||||
// return state;
|
||||
|
||||
// }
|
||||
|
||||
// return state;
|
||||
// }
|
||||
|
||||
// class MyInput extends Component {
|
||||
|
||||
// render() {
|
||||
// return <TextInput onChangeText={this.props.onChangeText} />
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// const mapStateToInputProps = function(state) {
|
||||
// return {}
|
||||
// }
|
||||
|
||||
// const mapDispatchToInputProps = function(dispatch) {
|
||||
// return {
|
||||
// onChangeText(text) {
|
||||
// dispatch({
|
||||
// type: 'SET_BUTTON_NAME',
|
||||
// name: text
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// const MyConnectionInput = connect(
|
||||
// mapStateToInputProps,
|
||||
// mapDispatchToInputProps
|
||||
// )(MyInput)
|
||||
|
||||
// class App extends Component {
|
||||
|
||||
// render() {
|
||||
// return (
|
||||
// <Provider store={store}>
|
||||
// <View>
|
||||
// <MyConnectionInput />
|
||||
// <LoginButton />
|
||||
// </View>
|
||||
// </Provider>
|
||||
// )
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// let api = new WebApi('http://192.168.1.2');
|
||||
// let sessionService = new SessionService(api);
|
||||
// sessionService.login('laurent@cozic.net', '12345678', clientId).then((session) => {
|
||||
// console.info('GOT DATA:');
|
||||
// console.info(session);
|
||||
// }).catch(function(error) {
|
||||
// console.warn('GOT ERROR:');
|
||||
// console.warn(error);
|
||||
// })
|
||||
|
||||
// AppRegistry.registerComponent('AwesomeProject', () => App);
|
||||
main();
|
Reference in New Issue
Block a user