Skip to content

Commit 61b0012

Browse files
committed
Merge branch 'develop'
2 parents 8ee4075 + 7ee8972 commit 61b0012

34 files changed

Lines changed: 1196 additions & 196 deletions

.dl-config

Lines changed: 0 additions & 6 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
1-
### Brunch base gitignore with a few tweaks (http://brunch.io/)
2-
3-
# Numerous always-ignore extensions
4-
*.diff
5-
*.err
6-
*.orig
7-
*.log
8-
*.rej
9-
*.swo
10-
*.swp
11-
*.vi
12-
*~
13-
*.sass-cache
14-
15-
# OS or Editor folders
16-
.DS_Store
17-
.cache
18-
.project
19-
.settings
20-
.tmproj
21-
nbproject
22-
Thumbs.db
23-
24-
# NPM packages folder.
25-
node_modules/
26-
27-
# Brunch folder for temporary files.
28-
tmp/
29-
30-
# Brunch output folder.
31-
public/
32-
project_files/
33-
34-
# Bower stuff.
35-
bower_components/
36-
37-
# Sublime Text 2
38-
*.sublime-workspace
1+
node_modules
2+
bower_components
3+
npm-debug.log
4+
.tmp
5+
dist

Gemfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 22 deletions
This file was deleted.

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2014 Doubleleft
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 20 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,31 @@
11
hook-admin
2-
==========
3-
Administrative interface built on top of [hook-javascript](https://github.com/doubleleft/hook-javascript) and [Bootstrap](http://getbootstrap.com/).
2+
===
43

5-
Setup
6-
-----
7-
Note that NodeJS (`brew install nodejs`) and Ruby 2.0 are required.
8-
9-
bundle install
10-
npm install -g brunch
11-
npm install
4+
Administrator interface for [hook](https://github.com/doubleleft/hook). Built on
5+
top of [marmelab/ng-admin](https://github.com/marmelab/ng-admin).
126

13-
Development
14-
-----------
7+
How to use
8+
---
159

16-
bundle exec brunch watch --server
10+
Install dependencies:
1711

12+
```
13+
npm install
14+
```
1815

19-
Open your development server at [http://localhost:3333](). Remember auto-reload is enabled by default, so any changes to the project will refresh your browser.
16+
Development mode:
2017

18+
```
19+
npm start
20+
```
2121

22-
### API Environment for Development
22+
Production build:
2323

24-
By default this project uses the `hook-admin-ddll` app.
24+
```
25+
gulp build
26+
```
2527

26-
The default login credentials are:
28+
License
29+
---
2730

28-
username: admin@doubleleft.com
29-
password: 123
30-
31-
Example
32-
-------
33-
34-
Use `app/assets/index.html` and `app/app.coffee` as a starting point.
35-
36-
The syntax is the same for CoffeeScript and JavaScript usage.
37-
38-
39-
// Initialize hook
40-
window.dl = new DL.Client( ...... )
41-
42-
// Create new hook-admin instance
43-
admin = new DLAdmin()
44-
45-
// Add your models
46-
admin.addModel(
47-
{
48-
name: "Categorias",
49-
collection: "dlacategories",
50-
editable: true,
51-
fields: [
52-
{name:"name", label: "Nome", type:"text"},
53-
{name:"description", label: "Description", type:"text", multiLine: true}
54-
],
55-
relationships: [
56-
{type: "has_many", collection: "dlaposts", sourceField:"_id", targetField: "category_id"}
57-
]
58-
}
59-
)
60-
61-
admin.addModel(
62-
{
63-
name: "Artigos",
64-
collection: "dlaposts",
65-
editable: true,
66-
fields: [
67-
{name:"text", type:"text", multiLine: true},
68-
{name:"image", type:"image"}
69-
],
70-
relationships: [
71-
{type: "belongs_to", collection: "dlacategories", sourceField:"category_id", targetField: "_id"}
72-
]
73-
}
74-
)
75-
76-
// Initialize hook-admin after models have been set
77-
admin.init()
31+
MIT

TODO.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- login
2+
- filters + custom filters
3+
- actions per row
4+
- custom fields
5+
+ file field
6+
+ image field

app/config/app.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
title: "hook-admin"
2+
3+
credentials:
4+
endpoint: http://localhost:4665/
5+
app_id: 38
6+
key: 'ccceb37dd9ea6947fba819259602b5e4'
7+
8+
collections:
9+
auths:
10+
label_field: email
11+
12+
projects:
13+
label: Projetos
14+
filters:
15+
- field: highlights
16+
label: With highlight
17+
- field: name
18+
type: like
19+
- field: client_name
20+
type: like
21+
sort:
22+
highlights: asc
23+
24+
menu:
25+
icon: file
26+
order: 1
27+
28+
dashboard:
29+
title: Últimos projetos
30+
sort: ['_id', 'desc'] # isn't working
31+
fields: ['name']
32+
limit: 5
33+
34+
list:
35+
description: Hello there!
36+
actions: ['show', 'edit', 'delete']
37+
# fields: ['name', 'client_name', 'auth']

app/css/main.styl

Whitespace-only changes.

app/css/sprites/index.styl

Whitespace-only changes.

0 commit comments

Comments
 (0)