Skip to content

Commit cf6e946

Browse files
committed
Fix #193
1 parent 33574c0 commit cf6e946

47 files changed

Lines changed: 876 additions & 339 deletions

File tree

Some content is hidden

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

locales/admin/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"messages_uploadComplete": "Upload complete",
4343
"messages_deleteConfirmation": "Are you sure you want to delete this item?",
4444
"messages_deleteForever": "Delete forever?",
45-
"help_dropHere": "Drop file here to upload",
45+
"help_dropHere": "Drop files here to upload",
4646
"help_slug": "The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.",
4747
"errors_required": "This field is required.",
4848
"errors_email": "Please enter a valid email address.",
@@ -245,5 +245,6 @@
245245
"orders_setDraft": "Set as Draft",
246246
"orders_search": "Search orders",
247247
"pageNotFound": "Page not found!",
248-
"skuTaken": "Product SKU must be unique"
248+
"skuTaken": "Product SKU must be unique",
249+
"product_options": "Options"
249250
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"babel-preset-latest": "^6.24.0",
5454
"babel-preset-react": "^6.23.0",
5555
"body-parser": "^1.16.1",
56-
"cezerin-client": "^0.4.38",
56+
"cezerin-client": "^0.4.40",
5757
"cookie-parser": "^1.4.3",
5858
"css-loader": "^0.28.0",
5959
"express": "^4.15.1",
@@ -91,7 +91,7 @@
9191
"slug": "^0.9.1",
9292
"theme": "file:themes/current",
9393
"ua-parser-js": "^0.7.12",
94-
"webpack": "^2.3.2",
94+
"webpack": "^2.3.3",
9595
"winston": "^2.3.1"
9696
},
9797
"devDependencies": {

public/admin-assets/css/style.css

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,43 @@
1-
html, body { height: 100%; margin: 0; padding: 0; background-color: #F9F9F9; box-sizing: border-box;}
1+
html, body {
2+
height: 100%;
3+
margin: 0;
4+
padding: 0;
5+
background-color: #f1f1f1;
6+
box-sizing: border-box;
7+
}
8+
9+
#app, #container {
10+
height: 100%;
11+
}
212

3-
#app, #container { height: 100%; }
4-
#bodyContainer { overflow: hidden; }
13+
#bodyContainer {
14+
overflow: hidden;
15+
}
516

6-
.scroll { overflow: auto;}
7-
.col-full-height { height: 100%; }
17+
.scroll {
18+
overflow: auto;
19+
}
20+
21+
.col-full-height {
22+
height: 100%;
23+
}
824

925
body, button, input, select, textarea {
10-
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
26+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
1127
}
1228

1329
.row--no-gutter {
14-
margin-left: 0;
15-
margin-right: 0;
30+
margin-left: 0;
31+
margin-right: 0;
1632
}
1733

1834
.col--no-gutter {
19-
padding-left: 0;
20-
padding-right: 0;
35+
padding-left: 0;
36+
padding-right: 0;
2137
}
2238

23-
.col-categories {
24-
background-color: #f1f1f1;
39+
.right-border {
2540
border-right: 1px solid #ccc;
26-
position: relative;
2741
}
2842

2943
.field-hint {
@@ -34,9 +48,8 @@ body, button, input, select, textarea {
3448
.buttons-box {
3549
text-align: right;
3650
padding: 30px;
37-
background-color: rgba(0,0,0,0.05);
51+
background-color: rgba(0, 0, 0, 0.05);
3852
border-top: 1px solid #e0e0e0;
39-
/*color: #757575;*/
4053
}
4154

4255
.blue-title {
@@ -46,12 +59,13 @@ body, button, input, select, textarea {
4659
padding: 20px 0 5px 0;
4760
}
4861

49-
.mce-content-body {
50-
border-bottom: 1px solid rgb(224, 224, 224);
51-
}
62+
.mce-content-body {}
63+
64+
.mce-edit-focus {}
5265

53-
.mce-edit-focus {
54-
/*border-bottom: 2px solid rgb(25, 118, 210);*/
66+
.products-item {
67+
background-color: #fff;
68+
border-left: 1px solid rgb(224, 224, 224);
5569
}
5670

5771
.block404 {
@@ -67,6 +81,6 @@ body, button, input, select, textarea {
6781
}
6882

6983
.block404 .description {
70-
color: rgba(0,0,0,0.4);
84+
color: rgba(0, 0, 0, 0.4);
7185
font-size: 16px;
7286
}

src/admin/client/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@
157157
window.addEventListener('load', resizeElements);
158158
</script>
159159
<link href="/admin-assets/css/flexboxgrid.min.css" rel="stylesheet" type="text/css" />
160-
<!-- <link href="/admin-assets/css/material.min.css" rel="stylesheet" type="text/css" /> -->
161160
<link href="/admin-assets/css/style.css" rel="stylesheet" type="text/css" />
162161
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&subset=cyrillic" rel="stylesheet">
163162
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

src/admin/client/index.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import layoutShared from 'layouts/shared'
1717
import layoutHome from 'layouts/home'
1818
import layoutNotFound from 'layouts/404'
1919
import layoutProducts from 'layouts/products'
20-
import layoutProductEdit from 'layouts/products/edit'
20+
import layoutProductEditShared from 'layouts/products/edit/shared'
21+
import layoutProductEditGeneral from 'layouts/products/edit/general'
22+
import layoutProductEditInventory from 'layouts/products/edit/inventory'
23+
import layoutProductEditImages from 'layouts/products/edit/images'
24+
import layoutProductEditOptions from 'layouts/products/edit/options'
2125
import layoutProductCategories from 'layouts/products/categories'
2226
import layoutCustomers from 'layouts/customers'
2327
import layoutCustomerEdit from 'layouts/customers/edit'
@@ -140,12 +144,21 @@ ReactDOM.render(
140144
<Route component={layoutShared}>
141145
<IndexRoute component={layoutHome}/>
142146
<Route path="products" component={layoutProducts}/>
143-
<Route path="product/:id" component={layoutProductEdit}/>
144147
<Route path="products/categories" component={layoutProductCategories}/>
148+
149+
<Route path="product/:productId" component={layoutProductEditShared}>
150+
<IndexRoute component={layoutProductEditGeneral}/>
151+
<Route path="general" component={layoutProductEditGeneral}/>
152+
<Route path="inventory" component={layoutProductEditInventory}/>
153+
<Route path="images" component={layoutProductEditImages}/>
154+
<Route path="options" component={layoutProductEditOptions}/>
155+
</Route>
156+
145157
<Route path="orders" component={layoutOrders}/>
146158
<Route path="customers" component={layoutCustomers}/>
147159
<Route path="customer/:id" component={layoutCustomerEdit}/>
148160
<Route path="customers/groups" component={layoutCustomerGroups}/>
161+
149162
<Route path="settings" component={layoutSettingsShared}>
150163
<IndexRoute component={layoutSettingsGeneral}/>
151164
<Route path="general" component={layoutSettingsGeneral}/>
@@ -168,6 +181,7 @@ ReactDOM.render(
168181
<Route path="tokens/add" component={layoutSettingsTokensAdd}/>
169182
<Route path="tokens/:tokenId" component={layoutSettingsTokensEdit}/>
170183
</Route>
184+
171185
<Route path="*" component={layoutNotFound} status={404}/>
172186
</Route>
173187
</Route>

src/admin/client/layouts/customers/groups/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Groups from 'modules/customer-groups/list';
44

55
export default () => (
66
<div className="row row--no-gutter col-full-height">
7-
<div className="col-xs-3 col--no-gutter scroll col-categories">
7+
<div className="col-xs-3 col--no-gutter scroll col-full-height right-border">
88
<Groups showAll={false} showRoot={false} showAdd={true} />
99
</div>
10-
<div className="col-xs-9 col--no-gutter scroll">
10+
<div className="col-xs-9 col--no-gutter scroll col-full-height">
1111
<GroupEdit />
1212
</div>
1313
</div>

src/admin/client/layouts/customers/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Groups from 'modules/customer-groups/list';
44

55
export default () => (
66
<div className="row row--no-gutter col-full-height">
7-
<div className="col-xs-3 col--no-gutter scroll col-categories">
7+
<div className="col-xs-3 col--no-gutter scroll col-full-height right-border">
88
<Groups showAll={true} showRoot={false} showAdd={false}/>
99
</div>
10-
<div className="col-xs-9 col--no-gutter scroll">
10+
<div className="col-xs-9 col--no-gutter scroll col-full-height">
1111
<CustomersList />
1212
</div>
1313
</div>

src/admin/client/layouts/home.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import React from 'react'
22

3-
import FontIcon from 'material-ui/FontIcon';
4-
5-
export const Layout = () => (
3+
export default() => (
64
<div>
7-
<FontIcon className="material-icons">attach_file</FontIcon>
8-
<FontIcon className="material-icons">add_a_photo</FontIcon>
9-
<FontIcon className="material-icons">delete</FontIcon>
10-
<FontIcon className="material-icons">done</FontIcon>
11-
<FontIcon className="material-icons">search</FontIcon>
12-
<FontIcon className="material-icons">content_copy</FontIcon>
13-
<FontIcon className="material-icons">clear</FontIcon>
5+
<div className="row">
6+
<div className="col-xs-6">
7+
Key performance indicators
8+
</div>
9+
<div className="col-xs-6">
10+
Key performance indicators
11+
</div>
12+
</div>
1413
</div>
1514
)
16-
17-
export default Layout

src/admin/client/layouts/orders/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import OrdersFilter from 'modules/orders/filter';
44

55
export default () => (
66
<div className="row row--no-gutter col-full-height">
7-
<div className="col-xs-3 col--no-gutter scroll col-categories">
7+
<div className="col-xs-3 col--no-gutter scroll col-full-height right-border">
88
<OrdersFilter />
99
</div>
10-
<div className="col-xs-9 col--no-gutter scroll">
10+
<div className="col-xs-9 col--no-gutter scroll col-full-height">
1111
<OrdersList />
1212
</div>
1313
</div>

src/admin/client/layouts/products/categories/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Categories from 'modules/product-categories/list';
44

55
export default () => (
66
<div className="row row--no-gutter col-full-height">
7-
<div className="col-xs-3 col--no-gutter scroll col-categories">
7+
<div className="col-xs-3 col--no-gutter scroll col-full-height right-border">
88
<Categories showAll={false} showTrash={false} showAdd={true} />
99
</div>
10-
<div className="col-xs-9 col--no-gutter scroll">
10+
<div className="col-xs-9 col--no-gutter scroll col-full-height">
1111
<CategoryEdit />
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)