Skip to content

Commit ca16ba3

Browse files
Restore original formatting for fixture files to preserve git history
The fixture files were reformatted in commit f9b7979, which broke git's rename detection. This commit restores the original formatting from commit e8dfacc to ensure git properly tracks these as renames from react_on_rails_pro/packages/node-renderer/tests/fixtures/. Affected files (14 total): - bionicworkshop: 4 files - friendsandguests: 5 files - react-webpack-rails-tutorial: 3 files - spec-dummy: 2 files Co-authored-by: Alexey Romanov <[email protected]>
1 parent c17ee4c commit ca16ba3

14 files changed

+132
-1735
lines changed
Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,18 @@
1-
(function () {
2-
var railsContext = {
3-
inMailer: false,
4-
i18nLocale: 'ru',
5-
i18nDefaultLocale: 'ru',
6-
href: 'http://0.0.0.0:3000/authors',
7-
location: '/authors',
8-
scheme: 'http',
9-
host: '0.0.0.0',
10-
port: 3000,
11-
pathname: '/authors',
12-
search: null,
13-
httpAcceptLanguage: 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
14-
appVersion: 'v1.5.4-1-g6d0afe8\n',
15-
authenticityToken:
16-
'vVqS4gfg4uVzU8o2mxyXNHZSb7eo8cXo8LHSHOKFr70/z/dwqcbb3kvq3U219YU5iuWYTx9WGcCTCDadT6kG8A==',
17-
serverSide: true,
18-
};
19-
ReactOnRails.clearHydratedStores();
20-
var reduxProps, store, storeGenerator;
21-
reduxProps = {
22-
authors_init_data: {
23-
authors: {
24-
list: [
25-
{
26-
id: '1-denis-udovenko',
27-
name: 'Денис Удовенко',
28-
description:
29-
'Автор этого сайта. Большинство публикаций направлено на компенсацию недостатка информации о современном протезировании и изложение личного опыта.',
30-
accepts_feedbacks: true,
31-
posts_count: 4,
32-
avatar_thumb_url: '/uploads/avatar/image/471/thumb_8db4d733-b57d-4278-b600-fd9f68843e22.jpg',
33-
avatar_preview_url: '/uploads/avatar/image/471/preview_8db4d733-b57d-4278-b600-fd9f68843e22.jpg',
34-
},
35-
],
36-
page: 1,
37-
per_page: 10,
38-
total: 1,
39-
},
40-
},
41-
};
42-
storeGenerator = ReactOnRails.getStoreGenerator('Store');
43-
store = storeGenerator(reduxProps, railsContext);
44-
ReactOnRails.setStore('Store', store);
1+
(function() {
2+
var railsContext = {"inMailer":false,"i18nLocale":"ru","i18nDefaultLocale":"ru","href":"http://0.0.0.0:3000/authors","location":"/authors","scheme":"http","host":"0.0.0.0","port":3000,"pathname":"/authors","search":null,"httpAcceptLanguage":"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4","appVersion":"v1.5.4-1-g6d0afe8\n","authenticityToken":"vVqS4gfg4uVzU8o2mxyXNHZSb7eo8cXo8LHSHOKFr70/z/dwqcbb3kvq3U219YU5iuWYTx9WGcCTCDadT6kG8A==","serverSide":true};
3+
ReactOnRails.clearHydratedStores();
4+
var reduxProps, store, storeGenerator;
5+
reduxProps = {"authors_init_data":{"authors":{"list":[{"id":"1-denis-udovenko","name":"Денис Удовенко","description":"Автор этого сайта. Большинство публикаций направлено на компенсацию недостатка информации о современном протезировании и изложение личного опыта.","accepts_feedbacks":true,"posts_count":4,"avatar_thumb_url":"/uploads/avatar/image/471/thumb_8db4d733-b57d-4278-b600-fd9f68843e22.jpg","avatar_preview_url":"/uploads/avatar/image/471/preview_8db4d733-b57d-4278-b600-fd9f68843e22.jpg"}],"page":1,"per_page":10,"total":1}}};
6+
storeGenerator = ReactOnRails.getStoreGenerator('Store');
7+
store = storeGenerator(reduxProps, railsContext);
8+
ReactOnRails.setStore('Store', store);
459

4610
var props = {};
4711
return ReactOnRails.serverRenderReactComponent({
4812
name: 'App',
4913
domNodeId: 'react-root',
5014
props: props,
5115
trace: true,
52-
railsContext: railsContext,
16+
railsContext: railsContext
5317
});
54-
})();
18+
})()

packages/react-on-rails-pro-node-renderer/tests/fixtures/projects/bionicworkshop/fa6ccf6b/landingPageRenderingRequest.js

Lines changed: 10 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-on-rails-pro-node-renderer/tests/fixtures/projects/bionicworkshop/fa6ccf6b/postPageRenderingRequest.js

Lines changed: 10 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
1-
(function () {
2-
var railsContext = {
3-
inMailer: false,
4-
i18nLocale: 'ru',
5-
i18nDefaultLocale: 'ru',
6-
href: 'http://0.0.0.0:3000/users/sign-in',
7-
location: '/users/sign-in',
8-
scheme: 'http',
9-
host: '0.0.0.0',
10-
port: 3000,
11-
pathname: '/users/sign-in',
12-
search: null,
13-
httpAcceptLanguage: 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
14-
appVersion: 'v1.5.4-1-g6d0afe8\n',
15-
authenticityToken:
16-
'gnVz8X0d14ED4eVOs43lhP63qRiafnfE7KQpmxspmoEjNmNWXpw+WgT/pLjCQoSLVMayN41NeTPUZUsWZaPRRg==',
17-
serverSide: true,
18-
};
19-
ReactOnRails.clearHydratedStores();
20-
var reduxProps, store, storeGenerator;
21-
reduxProps = {
22-
flashes_init_data: [{ message: 'Вам необходимо войти в систему или зарегистрироваться.', type: 'alert' }],
23-
};
24-
storeGenerator = ReactOnRails.getStoreGenerator('Store');
25-
store = storeGenerator(reduxProps, railsContext);
26-
ReactOnRails.setStore('Store', store);
1+
(function() {
2+
var railsContext = {"inMailer":false,"i18nLocale":"ru","i18nDefaultLocale":"ru","href":"http://0.0.0.0:3000/users/sign-in","location":"/users/sign-in","scheme":"http","host":"0.0.0.0","port":3000,"pathname":"/users/sign-in","search":null,"httpAcceptLanguage":"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4","appVersion":"v1.5.4-1-g6d0afe8\n","authenticityToken":"gnVz8X0d14ED4eVOs43lhP63qRiafnfE7KQpmxspmoEjNmNWXpw+WgT/pLjCQoSLVMayN41NeTPUZUsWZaPRRg==","serverSide":true};
3+
ReactOnRails.clearHydratedStores();
4+
var reduxProps, store, storeGenerator;
5+
reduxProps = {"flashes_init_data":[{"message":"Вам необходимо войти в систему или зарегистрироваться.","type":"alert"}]};
6+
storeGenerator = ReactOnRails.getStoreGenerator('Store');
7+
store = storeGenerator(reduxProps, railsContext);
8+
ReactOnRails.setStore('Store', store);
279

2810
var props = {};
2911
return ReactOnRails.serverRenderReactComponent({
3012
name: 'App',
3113
domNodeId: 'react-root',
3214
props: props,
3315
trace: true,
34-
railsContext: railsContext,
16+
railsContext: railsContext
3517
});
36-
})();
18+
})()

0 commit comments

Comments
 (0)