Logo
Explore Support Help
Register Sign In
tykayn/mastodon
1
0
Fork 0
You've already forked mastodon
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00
Code Issues Projects Releases Wiki Activity
mastodon/app/assets/javascripts/components/reducers/meta.jsx

17 lines
354 B
React
Raw Normal View History

Improve initialState loading
2017-01-09 12:37:15 +01:00
import { STORE_HYDRATE } from '../actions/store';
Refactoring redux state into different reducers
2016-10-30 15:06:43 +01:00
import Immutable from 'immutable';
The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests Adding better errors for the API controllers, posting a simple status works from the frontend now
2016-08-26 19:12:19 +02:00
Improve initialState loading
2017-01-09 12:37:15 +01:00
const initialState = Immutable.Map({
access_token: null,
me: null
});
The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests Adding better errors for the API controllers, posting a simple status works from the frontend now
2016-08-26 19:12:19 +02:00
export default function meta(state = initialState, action) {
switch(action.type) {
Improve initialState loading
2017-01-09 12:37:15 +01:00
case STORE_HYDRATE:
return state.merge(action.state.get('meta'));
default:
return state;
The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests Adding better errors for the API controllers, posting a simple status works from the frontend now
2016-08-26 19:12:19 +02:00
}
Adding a notification stack for error messages
2016-09-12 19:20:55 +02:00
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 48ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Help
Logo Chapril
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter