-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (138 loc) · 6.59 KB
/
Copy pathindex.html
File metadata and controls
156 lines (138 loc) · 6.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html ng-app="app">
<head>
<link rel="stylesheet" type="text/css" href="mobileui/fonts.css">
<link rel="stylesheet" type="text/css" href="mobileui/style.css">
<meta name="format-detection" content="telephone=no">
<meta charset="utf-8">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>CodeNews - Editor</title>
</head>
<body ng-controller="mainController">
<div class="content">
<div class="list list-editor">
<div class="item">
<label>Contribuidor</label>
<input type="password" placeholder="Digite sua chave de postagem" ng-model="tokenUser" ng-change="checkContribuitor()">
</div>
<div class="item">
<label>URL do post completo</label>
<input type="text" placeholder="Cole a URL do post original" ng-model="post.url_complete">
<div class="right">
<button class="small blue" ng-click="loadUrl()">Load</button>
</div>
</div>
<div class="item">
<label>Idioma do post completo</label>
<select ng-model="post.language">
<option value="pt-br">Português</option>
<option value="en">Inglês</option>
</select>
</div>
<div class="item">
<label>Título</label>
<input type="text" placeholder="Digite um título" ng-model="post.title">
</div>
<div class="item">
<label>Imagem</label>
<input type="text" placeholder="Cole a URL da imagem da postagem" ng-model="post.image">
</div>
<div class="item padding-right-button">
<label>Tags</label><br>
<p ng-show="!tags.length">Carregando tags...</p>
<label class="tag-category margin-right" ng-repeat="item in tags" ng-class="item.color">
<input type="checkbox" class="black" ng-model="item.checked" ng-change="checkTags()">
{{item.name}}
</label>
<div class="right">
<button class="blue small" ng-click="addTag()">Add tag</button>
</div>
</div>
<div class="item">
<label>Autor da origem</label>
<input type="text" placeholder="Digite o nome de quem postou originalmente" ng-model="post.author">
</div>
<div class="item">
<label for="content">Conteúdo (Use Markdown), exemplo: <a class="blue small" href="http://demo.showdownjs.com/"
target="_blank"> showdownjs.com </a> </label>
<textarea rows="6" id="content-writing" ng-change="makeHtml()" ng-model="post.description" placeholder="Digite o conteúdo"></textarea>
</div>
<div class="item">
<!-- <button class="border-blue text-blue radius" ng-click="saveDraft()">Salvar rascunho</button> -->
<button class="blue radius" ng-click="savePublish()">Salvar e publicar</button>
<button class="red radius" ng-click="removePublishDraft()" ng-show="post._id">Excluir este post</button>
</div>
</div>
</div>
<div class="mock-mobile">
<div class="header text-white" ng-class="{'black-opacity-00': !showListPosts, 'black': showListPosts}">
<button class="left icon ion-android-arrow-back" ng-click="backPost()"></button>
<div class="right">
<button class="icon ion-android-share-alt"></button>
<button class="icon ion-android-more-vertical"></button>
</div>
</div>
<div class="content has-header" ng-show="showListPosts">
<div class="list">
<a class="item" ng-click="showPost(item)" ng-repeat="item in posts">
<div class="left cover avatar-list" style="background-image: url({{item.image}})"></div>
<h2 class="font-libre">{{item.title}}</h2>
<p class="text-italic opacity-70">
{{formatDate(item.datetime)}} - {{item.author}}
</p>
<span class="red padding text-small" ng-show="item.draft">Rascunho</span>
<span class="padding margin-right text-small" ng-class="tag.color" ng-repeat="tag in item.tags">{{tag.name}}</span>
</a>
</div>
</div>
<div class="content" ng-show="!showListPosts">
<div class="cover cover-200 blue-grey-400 blend-multiply text-white" style="background-image: url({{post.image}})">
<div class="loading align-center" ng-show="!post.title">
<div class="space-huge"></div>
<svg class="loading-circle white-loading" width="40" height="40" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="15"></circle>
</svg>
<p>Aguardando digitação...</p>
</div>
<div ng-show="post.title">
<div class="padding bottom gradient">
<span class="padding" ng-class="red" ng-show="post.draft">Rascunho</span>
<span class="padding margin-right" ng-class="tag.color" ng-repeat="tag in post.tags">{{tag.name}}</span>
<h1 class="margin-top font-libre text-big text-strong text-shadow">{{post.title}}</h1>
<p class="text-italic opacity-80">
<div class="right">
<img ng-show="post.language === 'pt-br'" class="language" src="img/brazil.png">
<img ng-show="post.language === 'en'" class="language" src="img/united-states.png">
</div>
{{formatDate()}} - {{post.author}}
</p>
</div>
</div>
</div>
<div class="list no-border grey-100" ng-show="contributor._id">
<div class="item" ng-click="showPosts()">
<img class="left avatar circle" ng-src="{{contributor.photo}}">
<span class="label opacity-50">Recomendado por</span>
<h2 class="text-strong">{{contributor.name}}</h2>
<p class="text-italic opacity-70 text-small">{{getDateStart(contributor.date_start)}}</p>
<div class="right">
<i class="icon ion-ios-arrow-thin-right"></i>
</div>
</div>
</div>
<div class="description-post" id="description-post"></div>
<div class="align-center padding" ng-show="post.url_complete">
<button class="blue-grey-400 radius">Ver post completo</button>
</div>
</div>
</div>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="mobileui/mobileui.js"></script>
<script type="text/javascript" src="lib/angular.min.js"></script>
<script type="text/javascript" src="lib/moment-pt-br.js"></script>
<script type="text/javascript" src="lib/showdown.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>