删除不必要的文件
This commit is contained in:
parent
85fac1e280
commit
838bf730c1
|
|
@ -32,7 +32,7 @@
|
|||
- [x] 新增备忘录功能,有时候随手要做点纪录,就方便了。任意界面按快捷键A增加备忘录。双击备忘录可查看详情!
|
||||
- [x] 在设置的全局链接,可设置快捷键,用来在任何页面,快速打开设置的链接。
|
||||
- [x] 增加[Chrome插件](https://chrome.google.com/webstore/detail/%E4%B9%A6%E7%AD%BE%E5%BF%AB%E9%80%9F%E6%B7%BB%E5%8A%A0/paajmalhmjgdihaikmdfiplfmjlnkjgp),可在任意界面快速添加书签至系统。
|
||||
- [ ] 适配手机平板(正在进行中......)。
|
||||
- [×] 适配手机平板,手机端请访问[m.mybookmark.cn](http://m.mybookmark.cn/)。
|
||||
|
||||
|
||||
4 主要用到的模块说明
|
||||
|
|
@ -89,16 +89,13 @@ my-bookmark/
|
|||
│ │ ├── externe/ # 外部引入的JS文件
|
||||
| | | ├── angular.min.js # angular文件
|
||||
| | | ├── angular-cookies.min.js # angular前台cookies模块
|
||||
| | | ├── angular-medium-editor.min.js # 编辑器,书签编辑页面使用
|
||||
| | | ├── angular-sortable-view.min.js # 可以拖拽元素的控件,用于分类页面
|
||||
| | | ├── angular-ui-router.min.js # angular web客户端的路由
|
||||
| | | ├── calendar.min.js # 一个日历控件,用于搜索页面
|
||||
| | | ├── canvas-nest.min.js # 一个很赞的网页背景效果(装逼)
|
||||
| | | ├── clipboard.min.js # 用于复制粘贴库,不需要flash
|
||||
| | | ├── jquery.form.js # 表单异步提交(想不起哪里用了)
|
||||
| | | ├── jquery.uploadfile.min.js # 文件上传控件,用于上传浏览器导出书签
|
||||
| | | ├── jquery-3.1.1.min.js # jquery文件
|
||||
| | | ├── medium-editor.min.js # 编辑器,angular-medium-editor依赖
|
||||
| | | ├── ngDialog.min.js # 一个angular对话框控件
|
||||
| | | ├── ng-infinite-scroll.min.js # 一个angular无限滚动加载数据控件
|
||||
| | | ├── semantic.min.js # semantic文件
|
||||
|
|
@ -117,7 +114,6 @@ my-bookmark/
|
|||
| | ├── dialog-del-bookmark.html # 书签删除确认页面
|
||||
| | ├── dialog-del-note.html # 备忘录删除确认页面
|
||||
| | ├── dialog-del-tag.html # 分类删除确认页面
|
||||
| | ├── dialog-detail-note.html # 备忘录详情页面
|
||||
| | ├── edit.html # 书签添加修改页面
|
||||
| | ├── home.html # 未登录时首页页面
|
||||
| | ├── hot.html # 热门收藏页面
|
||||
|
|
|
|||
|
|
@ -1,230 +0,0 @@
|
|||
@-webkit-keyframes medium-editor-image-loading {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0); }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1); } }
|
||||
|
||||
@keyframes medium-editor-image-loading {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0); }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1); } }
|
||||
|
||||
@-webkit-keyframes medium-editor-pop-upwards {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12);
|
||||
transform: matrix(0.97, 0, 0, 1, 0, 12); }
|
||||
20% {
|
||||
opacity: .7;
|
||||
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2);
|
||||
transform: matrix(0.99, 0, 0, 1, 0, 2); }
|
||||
40% {
|
||||
opacity: 1;
|
||||
-webkit-transform: matrix(1, 0, 0, 1, 0, -1);
|
||||
transform: matrix(1, 0, 0, 1, 0, -1); }
|
||||
100% {
|
||||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
||||
transform: matrix(1, 0, 0, 1, 0, 0); } }
|
||||
|
||||
@keyframes medium-editor-pop-upwards {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12);
|
||||
transform: matrix(0.97, 0, 0, 1, 0, 12); }
|
||||
20% {
|
||||
opacity: .7;
|
||||
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2);
|
||||
transform: matrix(0.99, 0, 0, 1, 0, 2); }
|
||||
40% {
|
||||
opacity: 1;
|
||||
-webkit-transform: matrix(1, 0, 0, 1, 0, -1);
|
||||
transform: matrix(1, 0, 0, 1, 0, -1); }
|
||||
100% {
|
||||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
||||
transform: matrix(1, 0, 0, 1, 0, 0); } }
|
||||
|
||||
.medium-editor-anchor-preview {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
left: 0;
|
||||
line-height: 1.4;
|
||||
max-width: 280px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
visibility: hidden;
|
||||
z-index: 2000; }
|
||||
.medium-editor-anchor-preview a {
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
margin: 5px 5px 10px; }
|
||||
|
||||
.medium-editor-anchor-preview-active {
|
||||
visibility: visible; }
|
||||
|
||||
.medium-editor-dragover {
|
||||
background: #ddd; }
|
||||
|
||||
.medium-editor-image-loading {
|
||||
-webkit-animation: medium-editor-image-loading 1s infinite ease-in-out;
|
||||
animation: medium-editor-image-loading 1s infinite ease-in-out;
|
||||
background-color: #333;
|
||||
border-radius: 100%;
|
||||
display: inline-block;
|
||||
height: 40px;
|
||||
width: 40px; }
|
||||
|
||||
.medium-editor-placeholder {
|
||||
position: relative; }
|
||||
.medium-editor-placeholder:after {
|
||||
content: attr(data-placeholder) !important;
|
||||
font-style: italic;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
white-space: pre;
|
||||
padding: inherit;
|
||||
margin: inherit; }
|
||||
|
||||
.medium-editor-placeholder-relative {
|
||||
position: relative; }
|
||||
.medium-editor-placeholder-relative:after {
|
||||
content: attr(data-placeholder) !important;
|
||||
font-style: italic;
|
||||
position: relative;
|
||||
white-space: pre;
|
||||
padding: inherit;
|
||||
margin: inherit; }
|
||||
|
||||
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
|
||||
border-style: solid;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
position: absolute;
|
||||
width: 0; }
|
||||
|
||||
.medium-toolbar-arrow-under:after {
|
||||
border-width: 8px 8px 0 8px; }
|
||||
|
||||
.medium-toolbar-arrow-over:before {
|
||||
border-width: 0 8px 8px 8px;
|
||||
top: -8px; }
|
||||
|
||||
.medium-editor-toolbar {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
z-index: 2000; }
|
||||
.medium-editor-toolbar ul {
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
.medium-editor-toolbar li {
|
||||
float: left;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
.medium-editor-toolbar li button {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
line-height: 1.33;
|
||||
margin: 0;
|
||||
padding: 15px;
|
||||
text-decoration: none; }
|
||||
.medium-editor-toolbar li button:focus {
|
||||
outline: none; }
|
||||
.medium-editor-toolbar li .medium-editor-action-underline {
|
||||
text-decoration: underline; }
|
||||
.medium-editor-toolbar li .medium-editor-action-pre {
|
||||
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
font-size: 12px;
|
||||
font-weight: 100;
|
||||
padding: 15px 0; }
|
||||
|
||||
.medium-editor-toolbar-active {
|
||||
visibility: visible; }
|
||||
|
||||
.medium-editor-sticky-toolbar {
|
||||
position: fixed;
|
||||
top: 1px; }
|
||||
|
||||
.medium-editor-relative-toolbar {
|
||||
position: relative; }
|
||||
|
||||
.medium-editor-toolbar-active.medium-editor-stalker-toolbar {
|
||||
-webkit-animation: medium-editor-pop-upwards 160ms forwards linear;
|
||||
animation: medium-editor-pop-upwards 160ms forwards linear; }
|
||||
|
||||
.medium-editor-action-bold {
|
||||
font-weight: bolder; }
|
||||
|
||||
.medium-editor-action-italic {
|
||||
font-style: italic; }
|
||||
|
||||
.medium-editor-toolbar-form {
|
||||
display: none; }
|
||||
.medium-editor-toolbar-form input,
|
||||
.medium-editor-toolbar-form a {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
|
||||
.medium-editor-toolbar-form .medium-editor-toolbar-form-row {
|
||||
line-height: 14px;
|
||||
margin-left: 5px;
|
||||
padding-bottom: 5px; }
|
||||
.medium-editor-toolbar-form .medium-editor-toolbar-input,
|
||||
.medium-editor-toolbar-form label {
|
||||
border: none;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
width: 316px;
|
||||
display: inline-block; }
|
||||
.medium-editor-toolbar-form .medium-editor-toolbar-input:focus,
|
||||
.medium-editor-toolbar-form label:focus {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
outline: 0; }
|
||||
.medium-editor-toolbar-form a {
|
||||
display: inline-block;
|
||||
font-size: 24px;
|
||||
font-weight: bolder;
|
||||
margin: 0 10px;
|
||||
text-decoration: none; }
|
||||
|
||||
.medium-editor-toolbar-form-active {
|
||||
display: block; }
|
||||
|
||||
.medium-editor-toolbar-actions:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: table; }
|
||||
|
||||
.medium-editor-element {
|
||||
word-wrap: break-word;
|
||||
min-height: 30px; }
|
||||
.medium-editor-element img {
|
||||
max-width: 100%; }
|
||||
.medium-editor-element sub {
|
||||
vertical-align: sub; }
|
||||
.medium-editor-element sup {
|
||||
vertical-align: super; }
|
||||
|
||||
.medium-editor-hidden {
|
||||
display: none; }
|
||||
|
|
@ -24,7 +24,6 @@
|
|||
<link href="/css/externe/ngDialog.css" rel="stylesheet">
|
||||
<link href="/css/externe/ngDialog-theme-default.css" rel="stylesheet">
|
||||
<link href="/css/externe/ngDialog-theme-plain.css" rel="stylesheet">
|
||||
<link href="/css/externe/medium-editor.css" rel="stylesheet">
|
||||
<base href="/">
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
|
|
@ -95,9 +94,6 @@
|
|||
<script src="/scripts/externe/angular-sortable-view.min.js"></script>
|
||||
<script src="/scripts/externe/ngDialog.min.js"></script>
|
||||
<script src="/scripts/externe/clipboard.min.js"></script>
|
||||
<script src="/scripts/externe/angular-medium-editor.min.js"></script>
|
||||
<script src="/scripts/externe/medium-editor.min.js"></script>
|
||||
<script src="/scripts/externe/timeago.min.js"></script>
|
||||
<!-- <script count="120" src="/scripts/externe/canvas-nest.min.js"></script> -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
var app = angular.module('bookmarkApp', ['ui.router', 'ngCookies', 'infinite-scroll', 'angular-sortable-view', 'ngDialog', 'angular-medium-editor']);
|
||||
var app = angular.module('bookmarkApp', ['ui.router', 'ngCookies', 'infinite-scroll', 'angular-sortable-view', 'ngDialog']);
|
||||
|
||||
app.config(function($stateProvider, $urlRouterProvider, $httpProvider) {
|
||||
$httpProvider.interceptors.push('httpInterceptor');
|
||||
|
||||
$urlRouterProvider.otherwise("/");
|
||||
|
||||
$stateProvider
|
||||
|
|
|
|||
|
|
@ -6,17 +6,12 @@ app.controller('homeCtr', ['$scope', '$stateParams', '$filter', '$state', '$wind
|
|||
$window.location = "http://m.mybookmark.cn";
|
||||
return;
|
||||
}
|
||||
toastr.success(12345678, "提示");
|
||||
bookmarkService.autoLogin()
|
||||
.then((data) => {
|
||||
if (data.logined) {
|
||||
pubSubService.publish('loginCtr.login', {
|
||||
'login': data.logined,
|
||||
});
|
||||
// $state.go('bookmarks', {
|
||||
// showStyle: (data.user && data.user.show_style) || 'navigate',
|
||||
// })
|
||||
// toastr.success('自动登陆成功,系统将自动跳转到主页', "提示");
|
||||
$state.go('tags');
|
||||
toastr.success('自动登陆成功,系统将自动跳转到书签分类页面', "提示");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* angular-medium-editor
|
||||
* @version v1.2.1 - 2017-01-16
|
||||
* @link https://github.com/thijsw/angular-medium-editor
|
||||
* @author Thijs Wijnmaalen <thijs@wijnmaalen.name>
|
||||
* @license MIT License, http://www.opensource.org/licenses/MIT
|
||||
*/
|
||||
"use strict";angular.module("angular-medium-editor",[]).directive("mediumEditor",function(){function a(a){var b,c=document.createElement("div");return c.innerHTML=a,b=c.textContent||"",b.trim()}return{require:"ngModel",restrict:"AE",scope:{bindOptions:"="},link:function(b,c,d,e){angular.element(c).addClass("angular-medium-editor"),e.editor=new MediumEditor(c,b.bindOptions),e.$render=function(){e.editor.setContent(e.$viewValue||"");var a=e.editor.getExtensionByName("placeholder");a&&a.updatePlaceholder(c[0])},e.$isEmpty=function(b){return/[<>]/.test(b)?0===a(b).length:b?0===b.length:!0},e.editor.subscribe("editableInput",function(a,b){e.$setViewValue(b.innerHTML.trim())}),b.$watch("bindOptions",function(a){e.editor.init(c,a)}),b.$on("$destroy",function(){e.editor.destroy()})}}});
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2016 hustcc
|
||||
* License: MIT
|
||||
* Version: v1.0.1
|
||||
* GitHub: https://github.com/hustcc/canvas-nest.js
|
||||
**/
|
||||
!function(){function n(n,e,t){return n.getAttribute(e)||t}function e(n){return document.getElementsByTagName(n)}function t(){var t=e("script"),o=t.length,i=t[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){r.clearRect(0,0,a,c);var n,e,t,o,m,l;s.forEach(function(i,x){for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e<u.length;e++)n=u[e],null!==n.x&&null!==n.y&&(o=i.x-n.x,m=i.y-n.y,l=o*o+m*m,l<n.max&&(n===y&&l>=n.max/2&&(i.x-=.03*o,i.y-=.03*m),t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))}),x(i)}var a,c,u,m=document.createElement("canvas"),d=t(),l="c_n"+d.l,r=m.getContext("2d"),x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/45)},w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,y.x=n.clientX,y.y=n.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],f=0;d.n>f;f++){var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})}u=s.concat([y]),setTimeout(function(){i()},100)}();
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -461,28 +461,3 @@ app.factory('bookmarkService', ['$http', '$q', function($http, $q) {
|
|||
|
||||
return service;
|
||||
}]);
|
||||
|
||||
app.factory('httpInterceptor', ['$q', '$injector', function($q, $injector) {
|
||||
var defered = $q.defer();
|
||||
var httpInterceptor = {
|
||||
request: function(config) {
|
||||
return config;
|
||||
},
|
||||
requestError: function(err) {
|
||||
return $q.reject(err);
|
||||
},
|
||||
response: function(res) {
|
||||
return $q.resolve(res);
|
||||
},
|
||||
responseError: function(err) {
|
||||
if (401 === err.status) {
|
||||
// toastr.warning("您需要先登录才能使用该功能", "警告");
|
||||
$injector.get('$state').go('login', {})
|
||||
} else {
|
||||
toastr.error(JSON.stringify(err), "错误");
|
||||
}
|
||||
return $q.reject(err);
|
||||
}
|
||||
}
|
||||
return httpInterceptor;
|
||||
}]);
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
<div class="ngdialog-message">
|
||||
<h3>备忘详情</h3>
|
||||
<div class="ui divider"></div>
|
||||
<pre class="note-content" style="margin-top:0px;">{{ content }}</pre>
|
||||
</div>
|
||||
<div class="ngdialog-buttons">
|
||||
<button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="closeThisDialog('button')">确定</button>
|
||||
</div>
|
||||
Loading…
Reference in New Issue