diff --git a/conf/wide.go b/conf/wide.go index c0c63c9..15e7d79 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Configurations manipulations, all configurations (including user configurations) are stored in wide.json. package conf diff --git a/editor/editors.go b/editor/editors.go index e152c1e..c8f40fa 100644 --- a/editor/editors.go +++ b/editor/editors.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Editor manipulations. package editor diff --git a/editor/formatter.go b/editor/formatter.go index 60f1cb6..854ca1f 100644 --- a/editor/formatter.go +++ b/editor/formatter.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package editor import ( diff --git a/event/events.go b/event/events.go index 7f28277..016a17c 100644 --- a/event/events.go +++ b/event/events.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Event manipulations. package event diff --git a/file/files.go b/file/files.go index 84ff8a3..158b752 100644 --- a/file/files.go +++ b/file/files.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // File tree manipulations. package file diff --git a/i18n/locales.go b/i18n/locales.go index edc0a02..a45cb74 100644 --- a/i18n/locales.go +++ b/i18n/locales.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Internationalization manipulations. package i18n diff --git a/main.go b/main.go index 89b1f3c..7e85b41 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/notification/notifications.go b/notification/notifications.go index d45a4b3..bd89ab3 100644 --- a/notification/notifications.go +++ b/notification/notifications.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Notification manipulations. package notification diff --git a/output/outputs.go b/output/outputs.go index 9dfcd7e..2eeb178 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Build, run and go tool manipulations. package output diff --git a/output/processes.go b/output/processes.go index ef6c533..a2a3c4e 100644 --- a/output/processes.go +++ b/output/processes.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package output import ( diff --git a/session/sessions.go b/session/sessions.go index 2a027e9..69ad503 100644 --- a/session/sessions.go +++ b/session/sessions.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Session manipulations. // // Wide server side needs maintain two kinds of sessions: diff --git a/session/users.go b/session/users.go index 155ef1e..8d1e577 100644 --- a/session/users.go +++ b/session/users.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package session import ( diff --git a/shell/shells.go b/shell/shells.go index 41c13cf..2f443f5 100644 --- a/shell/shells.go +++ b/shell/shells.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Shell. package shell diff --git a/static/css/about.css b/static/css/about.css index 731b381..abbc563 100644 --- a/static/css/about.css +++ b/static/css/about.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #dialogAboutDialog .dialog-main { background-color: #FFF; } diff --git a/static/css/base.css b/static/css/base.css index 7f546e8..8ac7f00 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* start reset & function */ body { font-size: 13px; diff --git a/static/css/dialog.css b/static/css/dialog.css index 46edbaf..b19d57d 100644 --- a/static/css/dialog.css +++ b/static/css/dialog.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * dialig style * diff --git a/static/css/shell.css b/static/css/shell.css index 08c0bcb..e64bf96 100644 --- a/static/css/shell.css +++ b/static/css/shell.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #shellOutput, #shellInput { width: 100%; } \ No newline at end of file diff --git a/static/css/side.css b/static/css/side.css index 439c0ad..17e84eb 100644 --- a/static/css/side.css +++ b/static/css/side.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* start side */ .side { background-color: #FFF; diff --git a/static/css/sign.css b/static/css/sign.css index 5c75940..397e16e 100644 --- a/static/css/sign.css +++ b/static/css/sign.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + .wrapper { margin: 0 auto; width: 980px; diff --git a/static/css/start.css b/static/css/start.css index cae95a2..c1accfa 100644 --- a/static/css/start.css +++ b/static/css/start.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #startPage { padding: 50px 70px; line-height: 28px; diff --git a/static/css/wide.css b/static/css/wide.css index bda76f2..751cc5d 100644 --- a/static/css/wide.css +++ b/static/css/wide.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* start icon */ @font-face { font-family: 'icomoon'; diff --git a/static/js/bottomGroup.js b/static/js/bottomGroup.js index ecc037a..f19c888 100644 --- a/static/js/bottomGroup.js +++ b/static/js/bottomGroup.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var bottomGroup = { tabs: undefined, searchTab: undefined, diff --git a/static/js/dialog.js b/static/js/dialog.js index 73b5656..2975d42 100644 --- a/static/js/dialog.js +++ b/static/js/dialog.js @@ -1,19 +1,19 @@ -/* - * Copyright (C) 2011, Liyuan Li - * +/* + * Copyright (c) 2014, B3log + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ -(function ($) { + */ + $.fn.extend({ dialog: { version: "0.0.1.7", diff --git a/static/js/editors.js b/static/js/editors.js index 9372009..6dcadd6 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var editors = { data: [], tabs: {}, diff --git a/static/js/hotkeys.js b/static/js/hotkeys.js index 7edeec0..a774e71 100644 --- a/static/js/hotkeys.js +++ b/static/js/hotkeys.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var hotkeys = { defaultKeyMap: { // Ctrl+0 焦点切换到当前编辑器 diff --git a/static/js/menu.js b/static/js/menu.js index d1fd99b..376e017 100644 --- a/static/js/menu.js +++ b/static/js/menu.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var menu = { init: function () { this.subMenu(); diff --git a/static/js/notification.js b/static/js/notification.js index e58925d..dcab77b 100644 --- a/static/js/notification.js +++ b/static/js/notification.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var notification = { init: function () { $(".notification-count").click(function () { diff --git a/static/js/overwrite/codemirror/addon/hint/show-hint.js b/static/js/overwrite/codemirror/addon/hint/show-hint.js index b8ed5ea..90b9f00 100644 --- a/static/js/overwrite/codemirror/addon/hint/show-hint.js +++ b/static/js/overwrite/codemirror/addon/hint/show-hint.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE diff --git a/static/js/overwrite/codemirror/theme/wide.css b/static/js/overwrite/codemirror/theme/wide.css index 1d360fd..69991a8 100644 --- a/static/js/overwrite/codemirror/theme/wide.css +++ b/static/js/overwrite/codemirror/theme/wide.css @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + .cm-s-wide span.cm-meta {color: rgb(98,143,181);} .cm-s-wide span.cm-keyword { color: rgb(0,0,230); } .cm-s-wide span.cm-atom {color: #219;} diff --git a/static/js/session.js b/static/js/session.js index 5a4131c..30715ab 100644 --- a/static/js/session.js +++ b/static/js/session.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var session = { init: function () { this._initWS(); diff --git a/static/js/shell.js b/static/js/shell.js index f7cafa3..dec7800 100644 --- a/static/js/shell.js +++ b/static/js/shell.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var shell = { _shellWS: undefined, _initWS: function () { diff --git a/static/js/tabs.js b/static/js/tabs.js index 1b773d9..ef04187 100644 --- a/static/js/tabs.js +++ b/static/js/tabs.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var Tabs = function (obj) { obj._$tabsPanel = $(obj.id + " > .tabs-panel"); obj._$tabs = $(obj.id + " > .tabs"); diff --git a/static/js/tree.js b/static/js/tree.js index 6a8fc0c..f4c5e22 100644 --- a/static/js/tree.js +++ b/static/js/tree.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var tree = { fileTree: undefined, // 递归获取当前节点展开中的最后一个节点 diff --git a/static/js/wide.js b/static/js/wide.js index 72cbafd..4c2801c 100644 --- a/static/js/wide.js +++ b/static/js/wide.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var wide = { curNode: undefined, curEditor: undefined, diff --git a/static/js/windows.js b/static/js/windows.js index 52d8018..ad62e1c 100644 --- a/static/js/windows.js +++ b/static/js/windows.js @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2014, B3log + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + var windows = { isMaxEditor: false, init: function () { diff --git a/util/net.go b/util/net.go index c2b1b2b..4e5dbc2 100644 --- a/util/net.go +++ b/util/net.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Utilities. package util diff --git a/util/os.go b/util/os.go index 5049832..b2915dd 100644 --- a/util/os.go +++ b/util/os.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package util import ( diff --git a/util/panic.go b/util/panic.go index 38c1cb1..3f8ee9b 100644 --- a/util/panic.go +++ b/util/panic.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package util import ( diff --git a/util/ret.go b/util/ret.go index 4474d5e..3f4d045 100644 --- a/util/ret.go +++ b/util/ret.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package util import ( diff --git a/util/utf8reader.go b/util/utf8reader.go index 3f8f50c..6a9509d 100644 --- a/util/utf8reader.go +++ b/util/utf8reader.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //部分代码参考(Ctrl+c)自golang bufio package util diff --git a/util/websocket.go b/util/websocket.go index 04c15de..339ac97 100644 --- a/util/websocket.go +++ b/util/websocket.go @@ -1,3 +1,17 @@ +// Copyright (c) 2014, B3log +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package util import (