text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
import LoadingIndicator from '../../../src/components/LoadingIndicator.vue' import { defaultPlugins, shallowMount } from 'web-test-helpers' import { mock } from 'vitest-mock-extended' import { LoadingService } from '../../../src/services' import { OcProgress } from 'design-system/src/components' const selectors = { ...
owncloud/web/packages/web-pkg/tests/unit/components/LoadingIndicator.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/LoadingIndicator.spec.ts", "repo_id": "owncloud", "token_count": 608 }
838
import FileInfo from '../../../../../src/components/SideBar/Files/FileInfo.vue' import { defaultComponentMocks, defaultPlugins, shallowMount, RouteLocation } from 'web-test-helpers' import { mock } from 'vitest-mock-extended' import { Resource } from '@ownclouders/web-client' const selectors = { name: '[data...
owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Files/FileInfo.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Files/FileInfo.spec.ts", "repo_id": "owncloud", "token_count": 390 }
839
import { useFileActionsEmptyTrashBin } from '../../../../../src/composables/actions' import { useMessages, useModals } from '../../../../../src/composables/piniaStores' import { createLocationTrash, createLocationSpaces } from '../../../../../src/router' import { mock } from 'vitest-mock-extended' import { getComposabl...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsEmptyTrashBin.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsEmptyTrashBin.spec.ts", "repo_id": "owncloud", "token_count": 1484 }
840
import { useSpaceActionsRename } from '../../../../../src/composables/actions/spaces' import { useMessages, useModals } from '../../../../../src/composables/piniaStores' import { mock } from 'vitest-mock-extended' import { defaultComponentMocks, mockAxiosResolve, RouteLocation, getComposableWrapper } from 'web-...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsRename.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsRename.spec.ts", "repo_id": "owncloud", "token_count": 1148 }
841
import { getComposableWrapper } from 'web-test-helpers' import { useModals } from '../../../../src/composables/piniaStores' import { createPinia, setActivePinia } from 'pinia' describe('useModals', () => { beforeEach(() => { setActivePinia(createPinia()) }) describe('method "dispatchModal"', () => { it(...
owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/modals.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/piniaStores/modals.spec.ts", "repo_id": "owncloud", "token_count": 1140 }
842
import { formatFileSize } from '../../../src/helpers' describe('formatFileSize', () => { describe('converts numeric input to a human readable format', () => { it.each([ [0, '0 B'], [1, '1 B'], [1023, '1 kB'], [1024, '1 kB'], [1287654323, '1.3 GB'] ])('input "%s"', (input: number...
owncloud/web/packages/web-pkg/tests/unit/helpers/filesize.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/filesize.spec.ts", "repo_id": "owncloud", "token_count": 642 }
843
import { cacheService } from '../../../src/services' import { Cache } from '../../../src/helpers/cache' describe('cache', () => { describe('cacheService', () => { test('filePreview', () => { const filePreviewCache = cacheService.filePreview expect(filePreviewCache).toBeInstanceOf(Cache) }) t...
owncloud/web/packages/web-pkg/tests/unit/services/cache.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/services/cache.spec.ts", "repo_id": "owncloud", "token_count": 164 }
844
<template> <div class="oc-mb-l"> <p v-text="$gettext('Request a personal data export according to §20 GDPR.')" /> <span v-if="loading"> <oc-spinner /> </span> <span v-else-if="exportInProgress" class="oc-flex oc-flex-middle" data-testid="export-in-process" > <oc-icon ...
owncloud/web/packages/web-runtime/src/components/Account/GdprExport.vue/0
{ "file_path": "owncloud/web/packages/web-runtime/src/components/Account/GdprExport.vue", "repo_id": "owncloud", "token_count": 1814 }
845
<template> <nav :aria-label="$gettext('Account menu')"> <oc-button id="_userMenuButton" ref="menuButton" v-oc-tooltip="$gettext('My Account')" class="oc-topbar-personal" appearance="raw" :aria-label="$gettext('My Account')" > <avatar-image v-if="onPremisesSamA...
owncloud/web/packages/web-runtime/src/components/Topbar/UserMenu.vue/0
{ "file_path": "owncloud/web/packages/web-runtime/src/components/Topbar/UserMenu.vue", "repo_id": "owncloud", "token_count": 4514 }
846
import { CapabilityStore } from '@ownclouders/web-pkg' export const getWebVersion = (): string => { return `ownCloud Web UI ${process.env.PACKAGE_VERSION}` } export const getBackendVersion = ({ capabilityStore }: { capabilityStore: CapabilityStore }): string => { const backendStatus = capabilityStore.status ...
owncloud/web/packages/web-runtime/src/container/versions.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/container/versions.ts", "repo_id": "owncloud", "token_count": 175 }
847
const tape = [] const isDomNode = (node) => node instanceof Element const DIRECTION_FORWARD = 'forward' const DIRECTION_BACKWARD = 'backward' export default { methods: { focus({ from, to, revert }) { const direction = revert ? DIRECTION_BACKWARD : DIRECTION_FORWARD if (from && direction === DIRECTIO...
owncloud/web/packages/web-runtime/src/mixins/focusMixin.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/mixins/focusMixin.ts", "repo_id": "owncloud", "token_count": 275 }
848
import { AuthStore, CapabilityStore, ClientService } from '@ownclouders/web-pkg' import { PublicLinkType } from '@ownclouders/web-client/src/helpers' export interface PublicLinkManagerOptions { clientService: ClientService authStore: AuthStore capabilityStore: CapabilityStore } export class PublicLinkManager { ...
owncloud/web/packages/web-runtime/src/services/auth/publicLinkManager.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/services/auth/publicLinkManager.ts", "repo_id": "owncloud", "token_count": 1239 }
849
import FeedbackLink from '../../../../src/components/Topbar/FeedbackLink.vue' import { defaultPlugins, mount } from 'web-test-helpers' describe('FeedbackLink component', () => { describe('properties', () => { it('allows to overwrite the link href', async () => { const { wrapper } = getWrapper() const...
owncloud/web/packages/web-runtime/tests/unit/components/Topbar/FeedbackLink.spec.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/FeedbackLink.spec.ts", "repo_id": "owncloud", "token_count": 439 }
850
import focusMixin from '../../../src/mixins/focusMixin' import { defineComponent } from 'vue' import { mount } from 'web-test-helpers' const Component = defineComponent({ name: 'DummyComponent', mixins: [focusMixin], template: ` <ul> <li v-for="index in 10" :key="index"> <a v-...
owncloud/web/packages/web-runtime/tests/unit/mixins/focusMixin.spec.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/mixins/focusMixin.spec.ts", "repo_id": "owncloud", "token_count": 1617 }
851
diff --git a/lib/components/date-picker.umd.js b/lib/components/date-picker.umd.js index 571ada2a0d82ed79833600b75eca9a5ec670660f..124df53b7b8fe976c5afcc4588783b3c626cd8e2 100644 --- a/lib/components/date-picker.umd.js +++ b/lib/components/date-picker.umd.js @@ -17351,7 +17351,7 @@ const _yearGroupCount = 12; fo...
owncloud/web/patches/v-calendar@2.3.4.patch/0
{ "file_path": "owncloud/web/patches/v-calendar@2.3.4.patch", "repo_id": "owncloud", "token_count": 279 }
852
let numAjaxRequestsStart = 0 let start = 0 let end = 0 const sleepWhenNoNewAjaxCallsStarted = function (result) { const currentTime = Date.now() if (result.value <= numAjaxRequestsStart && currentTime < end) { this.pause(this.globals.waitForConditionPollInterval) checkSumStartedAjaxRequests(this) } if (...
owncloud/web/tests/acceptance/customCommands/waitForAjaxCallsToStartAndFinish.js/0
{ "file_path": "owncloud/web/tests/acceptance/customCommands/waitForAjaxCallsToStartAndFinish.js", "repo_id": "owncloud", "token_count": 412 }
853
Feature: rename files As a user I want to rename files So that I can organise my data structure Background: Given user "Alice" has been created with default attributes and without skeleton files in the server And user "Alice" has uploaded file "lorem.txt" to "lorem.txt" in the server And user "Alic...
owncloud/web/tests/acceptance/features/webUIRenameFiles/renameFiles.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUIRenameFiles/renameFiles.feature", "repo_id": "owncloud", "token_count": 3312 }
854
Feature: create markdown files As a user I want to create markdown files So that I can organize my text data in formatted form Background: Given user "Alice" has been created with default attributes and without skeleton files in the server And user "Alice" has uploaded file with content "simple markdow...
owncloud/web/tests/acceptance/features/webUITextEditor/textFile.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUITextEditor/textFile.feature", "repo_id": "owncloud", "token_count": 1278 }
855
module.exports = { camelize: function (str) { return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match, index) { if (+match === 0) { return '' // or if (/\s+/.test(match)) for white spaces } return index === 0 ? match.toLowerCase() : match.toUpperCase() }) } }
owncloud/web/tests/acceptance/helpers/stringHelper.js/0
{ "file_path": "owncloud/web/tests/acceptance/helpers/stringHelper.js", "repo_id": "owncloud", "token_count": 136 }
856
const util = require('util') const _ = require('lodash') const sharingHelper = require('../../helpers/sharingHelper') const timeoutHelper = require('../../helpers/timeoutHelper') module.exports = { commands: { /** * opens expiration date field on the webUI * @return {*} */ openExpirationDatePi...
owncloud/web/tests/acceptance/pageObjects/FilesPageElement/publicLinksDialog.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/publicLinksDialog.js", "repo_id": "owncloud", "token_count": 9792 }
857
const util = require('util') const { join } = require('../helpers/path') const { SHARE_STATE } = require('../helpers/sharingHelper') module.exports = { url: function (viewMode) { return join(this.api.launchUrl, '/files/shares/with-me/?view-mode=' + viewMode) }, commands: { /** * like build-in naviga...
owncloud/web/tests/acceptance/pageObjects/sharedWithMePage.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/sharedWithMePage.js", "repo_id": "owncloud", "token_count": 2206 }
858
const { client } = require('nightwatch-api') const { Given, When, Then } = require('@cucumber/cucumber') const previewPage = client.page.FilesPageElement.previewPage() const filesList = client.page.FilesPageElement.filesList() const assert = require('assert') Given( 'the user has viewed the file {string} in the prev...
owncloud/web/tests/acceptance/stepDefinitions/previewContext.js/0
{ "file_path": "owncloud/web/tests/acceptance/stepDefinitions/previewContext.js", "repo_id": "owncloud", "token_count": 589 }
859
const withHttp = (url) => (/^https?:\/\//i.test(url) ? url : `https://${url}`) exports.config = { // environment assets: './tests/e2e/filesForUpload', tempAssetsPath: './tests/e2e/filesForUpload/temp', baseUrlOcis: process.env.BASE_URL_OCIS ?? 'host.docker.internal:9200', basicAuth: process.env.BASIC_AUTH ==...
owncloud/web/tests/e2e/config.js/0
{ "file_path": "owncloud/web/tests/e2e/config.js", "repo_id": "owncloud", "token_count": 637 }
860
Feature: deny share access # FIXME: enable as soon as sharing NG supports it # Scenario: deny and grant access # Given "Admin" creates following users using API # | id | # | Alice | # | Brian | # When "Alice" logs in # And "Alice" creates the following folder in personal space usin...
owncloud/web/tests/e2e/cucumber/features/shares/denyShareAccess.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/shares/denyShareAccess.feature", "repo_id": "owncloud", "token_count": 710 }
861
Feature: Users can use web to organize tags Background: Given "Admin" creates following users using API | id | | Alice | | Brian | Scenario: Tag management When "Alice" logs in And "Alice" opens the "files" app And "Alice" uploads the following resource | resource | ...
owncloud/web/tests/e2e/cucumber/features/smoke/tags.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/tags.feature", "repo_id": "owncloud", "token_count": 1153 }
862
import { When, Then, DataTable } from '@cucumber/cucumber' import { World } from '../../environment' import { objects } from '../../../support' import { expect } from '@playwright/test' Then( '{string} should have quota {string}', async function (this: World, stepUser: string, quota: string): Promise<void> { c...
owncloud/web/tests/e2e/cucumber/steps/ui/accountMenu.ts/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/accountMenu.ts", "repo_id": "owncloud", "token_count": 847 }
863
export * from './user'
owncloud/web/tests/e2e/support/api/provision/index.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/api/provision/index.ts", "repo_id": "owncloud", "token_count": 8 }
864
export * as api from './api' export * as utils from './utils' export * as objects from './objects' export * as environment from './environment'
owncloud/web/tests/e2e/support/index.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/index.ts", "repo_id": "owncloud", "token_count": 41 }
865
import { Page } from '@playwright/test' import { UsersEnvironment } from '../../../environment' import * as po from './actions' import { config } from '../../../../config' import { getUserId } from '../../../api/graph' export class Users { #page: Page #usersEnvironment: UsersEnvironment constructor({ page }: { p...
owncloud/web/tests/e2e/support/objects/app-admin-settings/users/index.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/users/index.ts", "repo_id": "owncloud", "token_count": 1993 }
866
import { Page, expect } from '@playwright/test' import util from 'util' import Collaborator, { ICollaborator, IAccessDetails } from './collaborator' import { sidebar } from '../utils' import { clickResource } from '../resource/actions' import { clearCurrentPopup, createLinkArgs } from '../link/actions' import { config ...
owncloud/web/tests/e2e/support/objects/app-files/share/actions.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/app-files/share/actions.ts", "repo_id": "owncloud", "token_count": 3176 }
867
import { Page } from '@playwright/test' import { config } from '../../../config' import { getIdOfFileInsideSpace } from '../../api/davSpaces' import { User } from '../../types' import { getSpaceIdBySpaceName } from '../../api/graph' import { getOpenWithWebUrl } from '../../api/external' export interface navigateToDeta...
owncloud/web/tests/e2e/support/objects/url-navigation/actions.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/url-navigation/actions.ts", "repo_id": "owncloud", "token_count": 838 }
868
import fs from 'fs' import path from 'path' import { config } from '../../config' // max file creation size is 10GB export const MAX_FILE_SIZE = Math.pow(1024, 3) * 10 export const getBytes = (fileSize: string): number => { fileSize = fileSize.replace(/\s/g, '').toLowerCase() const size = parseFloat(fileSize.matc...
owncloud/web/tests/e2e/support/utils/runtimeFs.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/utils/runtimeFs.ts", "repo_id": "owncloud", "token_count": 923 }
869
<?php //客户端前端验证的后台函数 function upload_client($key,$save_path){ $arr_errors=array( 1=>'上传的文件超过了 php.ini中 upload_max_filesize 选项限制的值', 2=>'上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值', 3=>'文件只有部分被上传', 4=>'没有文件被上传', 6=>'找不到临时文件夹', 7=>'文件写入失败' ); if(!isset($_FILES[$ke...
zhuifengshaonianhanlu/pikachu/inc/uploadfunction.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/inc/uploadfunction.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 4172 }
870
<?php error_reporting(0); include_once '../inc/config.inc.php'; include_once '../inc/mysql.inc.php'; $link=connect(); // 判断是否登录,没有登录不能访问 if(!check_login($link)){ header("location:../pkxss_login.php"); } if(isset($_GET['id']) && is_numeric($_GET['id'])){ $id=escape($link, $_GET['id']); $query="delete fro...
zhuifengshaonianhanlu/pikachu/pkxss/xfish/pkxss_fish_result.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/pkxss/xfish/pkxss_fish_result.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 838 }
871
<?php /** * Created by runner.han * There is nothing new under the sun */ $SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1); if ($SELF_PAGE = "csrf_post.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','active open','','','active',''...
zhuifengshaonianhanlu/pikachu/vul/csrf/csrfpost/csrf_post.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/csrf/csrfpost/csrf_post.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1467 }
872
<?php $html.=<<<A <img class=player src="include/kd.png" /> <p class=nabname> Durant in 2007 first round draft sequence of the second was drafted by the Seattle supersonics, 2008 with the team moved to Oklahoma.In 2010, durant, 21, became the youngest NBA scoring champion, after two seasons in the NBA regular season sc...
zhuifengshaonianhanlu/pikachu/vul/fileinclude/include/file3.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/fileinclude/include/file3.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 121 }
873
<?php /** * Created by runner.han * There is nothing new under the sun */ $SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1); if ($SELF_PAGE = "op1_login.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','...
zhuifengshaonianhanlu/pikachu/vul/overpermission/op2/op2_login.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/overpermission/op2/op2_login.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 2413 }
874
<?php /** * Created by runner.han * There is nothing new under the sun */ $SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1); if ($SELF_PAGE = "sqli_search.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''...
zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_search.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_search.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1620 }
875
<?php /** * Created by PhpStorm. * User: hanlu220 * Date: 2019/5/29 * Time: 13:26 */ /** 1.元素内容:能解释标签和字符实体 2.标签属性值,能解释字符实体 3.属性值支持javascript:协议的,像src,href等,能解释字符实体。 4.事件中的绑定函数,像onmouseover=""这种事件绑定也是标签属性值,能解释字符实体 5.script中的内容:不能解释标签和字符实体。 * * 根据 HTML 的规格,script 元素中的数据不能出现 </。 * 而字符实体因不能被解释也不能 使用。所以,必须通过变更生成的...
zhuifengshaonianhanlu/pikachu/vul/xss/fixxss.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/fixxss.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 3092 }
876
<?php /** * Created by runner.han * There is nothing new under the sun */ $SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1); if ($SELF_PAGE = "xxe_1.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''...
zhuifengshaonianhanlu/pikachu/vul/xxe/xxe_1.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/xxe/xxe_1.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1479 }
877
# 8th Wall Web Examples - AFrame - Tap to place [Try the live demo here](https://8thwall.8thwall.app/placeground-aframe) This example allows the user to grow trees on the ground by tapping. Showcases raycasting, creating new objects, and importing a 3D model. ![](https://media.giphy.com/media/1vcbBZMlaZ4KElLnNH/giph...
8thwall/web/examples/aframe/placeground/README.md/0
{ "file_path": "8thwall/web/examples/aframe/placeground/README.md", "repo_id": "8thwall", "token_count": 299 }
0
// jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom'
8thwall/web/examples/aframe/reactapp/src/setupTests.js/0
{ "file_path": "8thwall/web/examples/aframe/reactapp/src/setupTests.js", "repo_id": "8thwall", "token_count": 75 }
1
/* globals BABYLON TWEEN XR8 XRExtras */ const modelRootURL = './' // Directory where 3D model lives const modelFile = 'tree.glb' // 3D model to spawn at tap const startScale = new BABYLON.Vector3(0.1, 0.1, -0.1) // Initial scale value for our model const endSc...
8thwall/web/examples/babylonjs/placeground/index.js/0
{ "file_path": "8thwall/web/examples/babylonjs/placeground/index.js", "repo_id": "8thwall", "token_count": 1706 }
2
/* Ported to JavaScript by Lazar Laszlo 2011 lazarsoft@gmail.com, www.lazarsoft.info */ /* * * Copyright 2007 ZXing authors * * 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 * * ...
8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/databr.js/0
{ "file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/databr.js", "repo_id": "8thwall", "token_count": 4214 }
3
// Copyright (c) 2018 8th Wall, Inc. const fragmentShaders = [ // Define some simple shaders to apply to the camera feed. ` precision mediump float; // Just the camera feed. varying vec2 texUv; uniform sampler2D sampler; void main() { gl_FragColor = texture2D(sampler, texUv); }`, ` precision mediump ...
8thwall/web/examples/camerapipeline/simpleshaders/index.js/0
{ "file_path": "8thwall/web/examples/camerapipeline/simpleshaders/index.js", "repo_id": "8thwall", "token_count": 1880 }
4
/* globals BABYLON XR8 XRExtras */ let box, engine, scene, camera // Populates some object into an XR scene and sets the initial camera position. const initXrScene = () => { const directionalLight = new BABYLON.DirectionalLight( 'DirectionalLight', new BABYLON.Vector3(0, -1, 1), scene ) directionalL...
8thwall/web/gettingstarted/babylonjs/index.js/0
{ "file_path": "8thwall/web/gettingstarted/babylonjs/index.js", "repo_id": "8thwall", "token_count": 1148 }
5
import type {ComponentDefinition} from 'aframe' declare const XRExtras: any const resourceComponent: ComponentDefinition = { schema: { src: {type: 'string'}, }, } const srcFromAttr = (scene, v) => { if (!v) { return v } const el = scene.querySelector(v) if (!el) { return v } return el.get...
8thwall/web/xrextras/src/aframe/components/asset-components.ts/0
{ "file_path": "8thwall/web/xrextras/src/aframe/components/asset-components.ts", "repo_id": "8thwall", "token_count": 1132 }
6
// The create method will only be called once const memo = <T extends ((...args: any[]) => NonNullable<any>)>(create: T) => { let value: ReturnType<T> | null = null let didCall = false return (...args: Parameters<typeof create>): ReturnType<T> => { if (!didCall) { value = create(...args) didCall ...
8thwall/web/xrextras/src/common/factory.ts/0
{ "file_path": "8thwall/web/xrextras/src/common/factory.ts", "repo_id": "8thwall", "token_count": 140 }
7
import htmlContent from './record-button.html' import './record-button.css' import {configure, getConfig} from './capture-config' import {drawWatermark} from './watermark' const ACTIVE_TIMEOUT = 300 let captureMode = 'standard' let status = 'waiting' let activeTimeout = null let isDown = false // This is used to kee...
8thwall/web/xrextras/src/mediarecorder/record-button.js/0
{ "file_path": "8thwall/web/xrextras/src/mediarecorder/record-button.js", "repo_id": "8thwall", "token_count": 2392 }
8
/* globals THREE */ let threeExtras = null const ThreeExtrasFactory = () => { if (threeExtras == null) { threeExtras = create() } return threeExtras } const pbrMaterial = ({opacity, tex, metalness, normals, roughness, alpha}) => { let texLoader = null const props = {} if (opacity < 1.0) { props....
8thwall/web/xrextras/src/three/three-extras.js/0
{ "file_path": "8thwall/web/xrextras/src/three/three-extras.js", "repo_id": "8thwall", "token_count": 1816 }
9
## 1、什么是前端 前端对于网站来说,通常是指网页,网站的前端部分包括网站的表现层和结构层。因此前端技术一般分为前端设计和前端开发。 前端设计一般可以理解为网站的视觉设计,比如 UI 设计; 前端开发则是网站的前台代码实现,包括基本的HTML和CSS以及JavaScript等。 前端开发的核心部分主要是:`HTML`,`CSS`,`JavaScript` 三个部分。 **HTML** 是这三者中最基础的部分,相当于是网页的骨架,也就是网页的结构; **CSS** 部分是网页的表现形式,也可以说是网页的美化,比如一个图片的大小、位置,文字的大小颜色等; **JavaScript** 是一种动态的脚本语言,负责与用户进行交互,增...
Daotin/Web/01-HTML/01-HTML基础/01-认识前端.md/0
{ "file_path": "Daotin/Web/01-HTML/01-HTML基础/01-认识前端.md", "repo_id": "Daotin", "token_count": 4401 }
10
## 一、渐变 渐变是CSS3当中比较丰富多彩的一个特性,通过渐变我们可以实现许多炫丽的效果,有效的减少图片的使用数量,并且具有很强的适应性和可扩展性。可分为**线性渐变**、**径向渐变**。 ### 1、线性渐变 线性渐变:**指沿着某条直线朝一个方向产生渐变效果。** **语法:** ```css background: linear-gradient(direction, color1, color2 [stop], color3...); ``` **参数说明**: - `direction`:表示线性渐变的方向, - `to left`:设置渐变为从右到左。相当于: 270deg; - `to ri...
Daotin/Web/02-CSS/02-CSS3/03-渐变,background属性.md/0
{ "file_path": "Daotin/Web/02-CSS/02-CSS3/03-渐变,background属性.md", "repo_id": "Daotin", "token_count": 5779 }
11
@charset "UTF-8"; /*css 初始化 */ html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin: 0; padding: 0; } fieldset, img, input, button { /*fieldset组合表单中的相关元素*/ border: none; padding: 0; margin: 0; outline-style: none; /*去除蓝色边框*/ } ul, ol { lis...
Daotin/Web/02-CSS/03-案例/01-仿JD静态首页/css/base.css/0
{ "file_path": "Daotin/Web/02-CSS/03-案例/01-仿JD静态首页/css/base.css", "repo_id": "Daotin", "token_count": 4640 }
12
## 1、数组定义 **通过字面量定义数组**: ```js var arr = [10,20,30]; ``` **通过构造函数定义数组**: ```js var arr = new Array(参数); // 参数位置为一个数值时为数组长度,多个数值时为数组中的元素。 // 如果没有参数的时候 Array后面的括号可以省略。 ``` ## 2、数组操作 1. 数组长度: `数组名.length; ` > **问:数组中存储的数据类型一定是一样的吗?** > > 类型可以不一样。 > > **问:数组的长度是不是可以改变呢?** > > 可以改变。 > ## 3、数组高级API ### ...
Daotin/Web/03-JavaScript/01-JavaScript基础知识/05-数组.md/0
{ "file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/05-数组.md", "repo_id": "Daotin", "token_count": 6243 }
13
## 1、BOM的概念 BOM(Browser Object Model):浏览器对象模型。 在浏览器中的一些操作都可以使用 BOM 的方法进行编程处理。 比如:刷新浏览器、前进、后退、在地址栏输入 URL 等。 ## 2、BOM 顶级对象 BOM 的顶级对象是:`window` window 是浏览器的顶级对象,当调用 window 下的属性和方法时,可以省略 window。 > 注意: > > 1、window 下的一个特殊属性:window.name,所以不要轻易定义 name 变量,会导致 window.name 被修改。 > > 2、top 等同于 window。 ## 3、系统对话框 ...
Daotin/Web/03-JavaScript/03-BOM/01-BOM的概念,一些BOM对象.md/0
{ "file_path": "Daotin/Web/03-JavaScript/03-BOM/01-BOM的概念,一些BOM对象.md", "repo_id": "Daotin", "token_count": 3927 }
14
// 获取任一元素(只能是单个元素) // 示例:$("#dv .uu span") function $(str, parent) { parent = parent || document; if (str.indexOf(" ") != -1) { // str中有空格 var strList = str.split(" "); // [ul,#dv] for (var i = 0; i < strList.length; i++) { if (i == strList.length - 1) { return $(strL...
Daotin/Web/03-JavaScript/daotin.js/0
{ "file_path": "Daotin/Web/03-JavaScript/daotin.js", "repo_id": "Daotin", "token_count": 7046 }
15
// Variables // -------------------------- @fa-font-path: "../fonts"; @fa-font-size-base: 14px; @fa-line-height-base: 1; //@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"; // for referencing Bootstrap CDN font files directly @fa-css-prefix: fa; @fa-version: "4.7.0"; @...
Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/variables.less/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/variables.less", "repo_id": "Daotin", "token_count": 11894 }
16
## 一、Promise Promise是一个对象,代表了未来某个将要发生的事件(,这个事件通常是一个异步操作) 有了Promise对象, 可以将异步操作以同步的流程表达出来, 避免了层层嵌套的回调函数(俗称'回调地狱')。 ES6的Promise是一个构造函数, 用来生成promise实例。 ### 1、promise对象3个状态 - `pending`: 初始化状态 - `fullfilled`: 成功状态 - `rejected`: 失败状态 只有异步操作的结果,可以决定当前是哪一种状态,任何其他操作都无法改变这个状态。这也是Promise这个名字的由来,它的英语意思就是“承诺”,表示其他手段无法改变。 一旦...
Daotin/Web/08-ES6语法/04-Promise,Symbol,Iterator.md/0
{ "file_path": "Daotin/Web/08-ES6语法/04-Promise,Symbol,Iterator.md", "repo_id": "Daotin", "token_count": 11423 }
17
## Express 简介 Express 是一个简洁而灵活的 node.js Web应用框架。Express提供了一个轻量级模块,把Node.js的http模块功能封装在一个简单易用的接口中。Express也扩展了http模块的功能,使你轻松处理服务器的路由、响应、cookie和HTTP请求的状态。使用Express可以充当Web服务器。 使用 Express 可以快速地搭建一个完整功能的网站。 简单来说就是,之前我们每次引入静态文件的时候,都需要自己写路由来解析界面,有了 express 框架,就可以像php一样,放入的静态文件可以自动解析。 还有可以自动生成package.json等创建一个web网站基本的文件架构...
Daotin/Web/10-Node.js/07-express框架介绍.md/0
{ "file_path": "Daotin/Web/10-Node.js/07-express框架介绍.md", "repo_id": "Daotin", "token_count": 6040 }
18
## 一、Redux框架 Redux是 Flux架构的体现,将 Flux 与函数式编程结合一起,很短时间内就成为了最热门的前端架构。 ![](./img/8.png) Redux是在解决中大型项目用到的框架,像Flux一样,小型项目可以不必使用。 > "如果你不知道是否需要 Redux,那就是不需要它。" ——someone > > "只有遇到 React 实在解决不了的问题,你才需要 Redux 。" —— Redux 的创造者 Dan Abramov ## 二、Redux设计思想 Redux 的设计思想很简单,就两句话。 (1)Web 应用是一个状态机,视图与状态是一一对应的。 (2)所有的状态,保存在一...
Daotin/Web/13-React/06-Redux框架.md/0
{ "file_path": "Daotin/Web/13-React/06-Redux框架.md", "repo_id": "Daotin", "token_count": 7626 }
19
## 一、输入属性(父组件向子组件传值) 比如主组件向Home组件传递数据: 父组件传递数据: ```js // app.component.html 主组件 <app-home messageText="这是主组件传递的数据"></app-home> ``` 子组件接收数据: ```typescript // home.component.ts // 修饰器,将messageText修饰为外部传入的属性 @Input() // 定义一个属性,未给值 messageText: string // home.component.html <p>{{messageText}}</p> ``` > 注意:装饰器`@Input...
Daotin/Web/14-Angular/05-组件间传值.md/0
{ "file_path": "Daotin/Web/14-Angular/05-组件间传值.md", "repo_id": "Daotin", "token_count": 1294 }
20
## 一、canvas 通过JS完成画图而不是css canvas 默认 inline-block,可以认为是一种特殊的图片。 ### 1、canvas 划线 ```html <canvas id="can" width="800" height="800"></canvas> ``` > (宽高不能放在style里面,否则比例不对) > > canvas里面的width和height相当于图片的原始尺寸,加了外部style的宽高,就相当于对图片进行压缩和拉伸。 ```js // 1、获取原生dom对象 let dom = document.getElementById('can'); // 2、获取绘图对象 ...
Daotin/Web/16-前端综合/01-canvas.md/0
{ "file_path": "Daotin/Web/16-前端综合/01-canvas.md", "repo_id": "Daotin", "token_count": 7539 }
21
/** * java bean : PO VO * * @author 何明胜 * * 2017年10月21日 */ package pers.husen.web.bean;
Humsen/web/web-core/src/pers/husen/web/bean/package-info.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/bean/package-info.java", "repo_id": "Humsen", "token_count": 47 }
22
package pers.husen.web.common.constants; /** * 前端到后端请求常量 * * @author 何明胜 * * 2017年11月6日 */ public class RequestConstants { /****************************************************************************** * 前端请求参数名称 ******************************************************************************/ public static...
Humsen/web/web-core/src/pers/husen/web/common/constants/RequestConstants.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/common/constants/RequestConstants.java", "repo_id": "Humsen", "token_count": 1961 }
23
/** * 通用助手 * * @author 何明胜 * * 2017年10月20日 */ package pers.husen.web.common;
Humsen/web/web-core/src/pers/husen/web/common/package-info.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/common/package-info.java", "repo_id": "Humsen", "token_count": 51 }
24
package pers.husen.web.dao.impl; import java.util.ArrayList; import java.util.Date; import pers.husen.web.bean.vo.ArticleCategoryVo; import pers.husen.web.bean.vo.BlogArticleVo; import pers.husen.web.bean.vo.CodeLibraryVo; import pers.husen.web.common.constants.DbConstans; import pers.husen.web.dao.ArticleCategoryDao...
Humsen/web/web-core/src/pers/husen/web/dao/impl/ArticleCategoryDaoImpl.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dao/impl/ArticleCategoryDaoImpl.java", "repo_id": "Humsen", "token_count": 1574 }
25
package pers.husen.web.dbutil.mappingdb; /** * 博客数据库映射 * * @author 何明胜 * * 2017年10月20日 */ public class BlogDetailsMapping { /** * 数据库名称 */ public static final String DB_NAME = "blog_details"; public static final String BLOG_ID = "blog_id"; public static final String BLOG_TITLE = "blog_title"; public s...
Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/BlogDetailsMapping.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/BlogDetailsMapping.java", "repo_id": "Humsen", "token_count": 281 }
26
package pers.husen.web.service; import pers.husen.web.bean.vo.ReleaseFeatureVo; import pers.husen.web.dao.ReleaseFeatureDao; import pers.husen.web.dao.impl.ReleaseFeatureDaoImpl; /** * @author 何明胜 * * 2017年10月17日 */ public class ReleaseFeatureSvc implements ReleaseFeatureDao{ private static final ReleaseFeatureD...
Humsen/web/web-core/src/pers/husen/web/service/ReleaseFeatureSvc.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/service/ReleaseFeatureSvc.java", "repo_id": "Humsen", "token_count": 289 }
27
package pers.husen.web.servlet.image; import java.io.IOException; import java.io.PrintWriter; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSer...
Humsen/web/web-core/src/pers/husen/web/servlet/image/ImageUploadSvt.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/image/ImageUploadSvt.java", "repo_id": "Humsen", "token_count": 936 }
28
Manifest-Version: 1.0 Class-Path:
Humsen/web/web-mobile/WebContent/META-INF/MANIFEST.MF/0
{ "file_path": "Humsen/web/web-mobile/WebContent/META-INF/MANIFEST.MF", "repo_id": "Humsen", "token_count": 15 }
29
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>web</display-name> <des...
Humsen/web/web-mobile/WebContent/WEB-INF/web.xml/0
{ "file_path": "Humsen/web/web-mobile/WebContent/WEB-INF/web.xml", "repo_id": "Humsen", "token_count": 545 }
30
@charset "UTF-8"; .form-editor-version { margin-top: 50px; }
Humsen/web/web-mobile/WebContent/css/personal_center/editor_version.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/css/personal_center/editor_version.css", "repo_id": "Humsen", "token_count": 29 }
31
/** * 自定义开发工具包 * * @author 何明胜 * * 2017年10月23日 */ /** * 重写日期格式 * * 对Date的扩展,将 Date 转化为指定格式的String 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, * 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) 例子: (new * Date()).Format('yyyy-MM-dd hh:mm:ss.S') ==> 2006-07-02 08:09:04.423 (new * Date()).Format('yyyy-M-d h:m...
Humsen/web/web-mobile/WebContent/js/customize-sdk.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/js/customize-sdk.js", "repo_id": "Humsen", "token_count": 2086 }
32
/** * @author 何明胜 * * 2017年11月1日 */ /** 初始化 */ $(document).ready(function() { // 有效性校验 modifyEmailValidator(); //认证 if($('#btn_modifyEmailAuth').length > 0){ // 绑定发送验证码事件 $('#btn_sendValidateCode').click(sendAuthValidateCodeClick); //初始化下一步按钮 initNextStepBtn(); } //绑定 if($('#btn_modifyEmailBin...
Humsen/web/web-mobile/WebContent/js/personal_center/modify-email.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/js/personal_center/modify-email.js", "repo_id": "Humsen", "token_count": 4397 }
33
<link rel="stylesheet" href="/css/personal_center/modify-userinfo.css"> <!-- 修改用户信息脚本 --> <script src="/js/personal_center/modify-userinfo.js"></script> <form id="modifyForm" class="form-horizontal modify-userinfo-form"> <div class="form-group"> <label class="col-sm-4 control-label">头像</label> <div id="imgdiv" c...
Humsen/web/web-mobile/WebContent/personal_center/modify_userinfo.html/0
{ "file_path": "Humsen/web/web-mobile/WebContent/personal_center/modify_userinfo.html", "repo_id": "Humsen", "token_count": 1093 }
34
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE /** * Tag-closer extension for CodeMirror. * * This extension adds an "autoCloseTags" option that can be set to * either true to get the default behavior, or an object to further * config...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/closetag.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/closetag.js", "repo_id": "Humsen", "token_count": 2973 }
35
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/javascript-hint.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/javascript-hint.js", "repo_id": "Humsen", "token_count": 2355 }
36
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function() { CodeMirror.defineMode("markdown_with_stex", function(){ var inner = CodeMirror.getMode({}, "stex"); var outer = CodeMirror.getMode({}, "markdown"); var innerOption...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/mode/multiplex_test.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/mode/multiplex_test.js", "repo_id": "Humsen", "token_count": 330 }
37
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Because sometimes you need to style the cursor's line. // // Adds an option 'styleActiveLine' which, when enabled, gives the // active line's wrapping <div> the CSS class "CodeMirror-active...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/selection/active-line.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/selection/active-line.js", "repo_id": "Humsen", "token_count": 922 }
38
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/ebnf/ebnf.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/ebnf/ebnf.js", "repo_id": "Humsen", "token_count": 3156 }
39
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); else if (typeof defin...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/htmlembedded/htmlembedded.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/htmlembedded/htmlembedded.js", "repo_id": "Humsen", "token_count": 1147 }
40
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/mllike/mllike.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/mllike/mllike.js", "repo_id": "Humsen", "token_count": 2189 }
41
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/rpm/rpm.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/rpm/rpm.js", "repo_id": "Humsen", "token_count": 1632 }
42
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); else if (typeof defin...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/soy/soy.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/soy/soy.js", "repo_id": "Humsen", "token_count": 3558 }
43
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/turtle/turtle.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/turtle/turtle.js", "repo_id": "Humsen", "token_count": 2126 }
44
.cm-s-ambiance.CodeMirror { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; }
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/ambiance-mobile.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/ambiance-mobile.css", "repo_id": "Humsen", "token_count": 46 }
45
/* neo theme for codemirror */ /* Color scheme */ .cm-s-neo.CodeMirror { background-color:#ffffff; color:#2e383c; line-height:1.4375; } .cm-s-neo .cm-comment {color:#75787b} .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} .cm-s-neo .cm-node,....
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/neo.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/neo.css", "repo_id": "Humsen", "token_count": 451 }
46
##### Markdown语法教程 (Markdown syntax tutorial) - [Markdown Syntax](http://daringfireball.net/projects/markdown/syntax/ "Markdown Syntax") - [Mastering Markdown](https://guides.github.com/features/mastering-markdown/ "Mastering Markdown") - [Markdown Basics](https://help.github.com/articles/markdown-basics/ "Markdown Ba...
Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/help-dialog/help.md/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/help-dialog/help.md", "repo_id": "Humsen", "token_count": 5464 }
47
(function ($) { /** * Arabic language package * Translated by @Arkni */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'الرجاء إدخال قيمة مشفرة طبقا للقاعدة 64.' }, between: { 'default': 'الرجاء إد...
Humsen/web/web-mobile/WebContent/plugins/validator/js/language/ar_MA.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/validator/js/language/ar_MA.js", "repo_id": "Humsen", "token_count": 9641 }
48
(function ($) { /** * Italian language package * Translated by @maramazza */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'Si prega di inserire un valore codificato in Base 64' }, between: { 'def...
Humsen/web/web-mobile/WebContent/plugins/validator/js/language/it_IT.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/validator/js/language/it_IT.js", "repo_id": "Humsen", "token_count": 7803 }
49
(function ($) { /** * Simplified Chinese language package * Translated by @shamiao */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': '请输入有效的Base64编码' }, between: { 'default': '请输入在 %s 和 %s 之间的数值', ...
Humsen/web/web-mobile/WebContent/plugins/validator/js/language/zh_CN.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/validator/js/language/zh_CN.js", "repo_id": "Humsen", "token_count": 9254 }
50
@charset "UTF-8"; #fh5co-main { width: 60%; float: left; margin: 0 2.5%; transition: 0.5s; -moz-transition: 0.5s; /* Firefox 4 */ -webkit-transition: 0.5s; /* Safari 和 Chrome */ -o-transition: 0.5s; /* Opera */ } #fh5co-main .fh5co-narrow-content { position: relative; width: 93%; margin: 0 auto; padding: 4...
Humsen/web/web-pc/WebContent/css/navigation/middle.css/0
{ "file_path": "Humsen/web/web-pc/WebContent/css/navigation/middle.css", "repo_id": "Humsen", "token_count": 742 }
51
/** * @author 何明胜 * * 2017年10月18日 */ $(function(){ // 加载文章细节后, 自动显示markdown showMarkdown(); }); /** * 解析markdown html * */ function showMarkdown() { editormd.markdownToHTML('content', { htmlDecode : 'style,script,iframe', // you can filter tags decode emoji : true, taskList : true, tex : true, // 默认...
Humsen/web/web-pc/WebContent/js/article/article-markdown.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/js/article/article-markdown.js", "repo_id": "Humsen", "token_count": 221 }
52
/** * 留言区函数 * * @author 何明胜 * * 2017年9月25日 */ /** 加载插件 * */ $.ajax({ url : '/plugins/plugins.html', // 这里是静态页的地址 async : false, type : 'GET', // 静态页用get方法,否则服务器会抛出405错误 success : function(data) { $($('head')[0]).find('script:first').after(data); } }); $(function() { /** 顶部导航栏 **/ $.ajax({ url : '/m...
Humsen/web/web-pc/WebContent/js/message/message.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/js/message/message.js", "repo_id": "Humsen", "token_count": 7582 }
53
<!-- 此处修改记得更新 后端通用模板 --> <!-- 左侧固定栏 --> <link rel="stylesheet" href="/css/navigation/leftbar.css" /> <!-- 加载新版本特性 --> <script src="/js/navigation/leftbar.js"></script> <div id="bar_left"> <!-- 加载新版特性 --> <div id="txt_versionFeature" class="sidebar-module"></div> <!-- 加载文章分类 --> <div id="txt_articleCategory" cl...
Humsen/web/web-pc/WebContent/module/navigation/leftbar.html/0
{ "file_path": "Humsen/web/web-pc/WebContent/module/navigation/leftbar.html", "repo_id": "Humsen", "token_count": 250 }
54
table.dataTable { clear: both; margin: 0.5em 0 !important; max-width: none !important; width: 100%; } table.dataTable td, table.dataTable th { -webkit-box-sizing: content-box; box-sizing: content-box; } table.dataTable td.dataTables_empty, table.dataTable th.dataTables_empty { text-align: center; } table....
Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.foundation.css/0
{ "file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.foundation.css", "repo_id": "Humsen", "token_count": 1090 }
55
/*! DataTables UIkit 3 integration */ /** * This is a tech preview of UIKit integration with DataTables. */ (function( factory ){ if ( typeof define === 'function' && define.amd ) { // AMD define( ['jquery', 'datatables.net'], function ( $ ) { return factory( $, window, document ); } ); } else if ( type...
Humsen/web/web-pc/WebContent/plugins/DataTables/js/dataTables.uikit.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/js/dataTables.uikit.js", "repo_id": "Humsen", "token_count": 1980 }
56
"use strict"; var os = require("os"); var gulp = require("gulp"); var gutil = require("gulp-util"); var sass = require("gulp-ruby-sass"); var jshint = require("gulp-jshint"); var uglify = require("gulp-uglifyjs"); var rename = require("gulp-rename"); var concat ...
Humsen/web/web-pc/WebContent/plugins/editormd/js/Gulpfile.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/plugins/editormd/js/Gulpfile.js", "repo_id": "Humsen", "token_count": 6950 }
57
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-pc/WebContent/plugins/editormd/lib/codemirror/addon/display/rulers.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/plugins/editormd/lib/codemirror/addon/display/rulers.js", "repo_id": "Humsen", "token_count": 918 }
58
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../mode/css/css")); else if (typeof define ==...
Humsen/web/web-pc/WebContent/plugins/editormd/lib/codemirror/addon/hint/css-hint.js/0
{ "file_path": "Humsen/web/web-pc/WebContent/plugins/editormd/lib/codemirror/addon/hint/css-hint.js", "repo_id": "Humsen", "token_count": 810 }
59