text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { DateTime } from 'luxon'
import ResourceTable from '../../../../src/components/FilesList/ResourceTable.vue'
import {
extractDomSelector,
IncomingShareResource,
Resource,
ShareTypes,
SpaceResource
} from '@ownclouders/web-client/src/helpers'
import { defaultPlugins, mount } from 'web-test-helpers'
impo... | owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts",
"repo_id": "owncloud",
"token_count": 7197
} | 797 |
import QuotaSelect from '../../../src/components/QuotaSelect.vue'
import { defaultPlugins, shallowMount } from 'web-test-helpers'
describe('QuotaSelect', () => {
describe('method "optionSelectable"', () => {
it('should return true while option selectable property is not false', () => {
const { wrapper } = ... | owncloud/web/packages/web-pkg/tests/unit/components/QuotaSelect.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/QuotaSelect.spec.ts",
"repo_id": "owncloud",
"token_count": 1760
} | 798 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Multiple Details SideBar Panel > displays the details side panel 1`] = `
"<div id="oc-spaces-details-multiple-sidebar">
<div class="spaces-preview oc-mb">
<div class="spaces-preview-body">
<oc-icon-stub name="layout-grid" filltype="fill... | owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/__snapshots__/SpaceDetailsMultiple.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/Details/__snapshots__/SpaceDetailsMultiple.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 584
} | 799 |
import { useFileActionsRestore } from '../../../../../src/composables/actions'
import { createLocationTrash, createLocationSpaces } from '../../../../../src/router'
import { mock } from 'vitest-mock-extended'
import { defaultComponentMocks, getComposableWrapper, RouteLocation } from 'web-test-helpers'
import { useMessa... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsRestore.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsRestore.spec.ts",
"repo_id": "owncloud",
"token_count": 2913
} | 800 |
import { getComposableWrapper } from 'web-test-helpers'
import { mock } from 'vitest-mock-extended'
import { Resource, SpaceResource } from '@ownclouders/web-client'
import { useFileActions, Action, useOpenWithDefaultApp } from '../../../../src/composables'
vi.mock('../../../../src/composables/actions/files', async (i... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/useOpenWithDefaultApp.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/useOpenWithDefaultApp.spec.ts",
"repo_id": "owncloud",
"token_count": 750
} | 801 |
import { useRouteQuery } from '../../../../src/composables'
import { Ref, nextTick, computed, ComputedRef, unref } from 'vue'
import { getComposableWrapper, createRouter } from 'web-test-helpers'
describe('useRouteQuery', () => {
it('is reactive', async () => {
const router = createRouter({
routes: [{ path... | owncloud/web/packages/web-pkg/tests/unit/composables/router/useRouteQuery.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/router/useRouteQuery.spec.ts",
"repo_id": "owncloud",
"token_count": 1799
} | 802 |
import { mock, mockDeep } from 'vitest-mock-extended'
import { Resource } from '@ownclouders/web-client'
import { ConflictDialog, ResolveConflict } from '../../../../../src/helpers/resource'
import { useModals } from '../../../../../src/composables/piniaStores'
import { setActivePinia } from 'pinia'
import { createMock... | owncloud/web/packages/web-pkg/tests/unit/helpers/resource/conflictHandling/conflictDialog.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/resource/conflictHandling/conflictDialog.spec.ts",
"repo_id": "owncloud",
"token_count": 641
} | 803 |
import { PasswordPolicyService } from '../../../src/services'
import { createTestingPinia } from 'web-test-helpers'
import { Language } from 'vue3-gettext'
import { PasswordPolicyCapability } from '@ownclouders/web-client/src/ocs/capabilities'
import { useCapabilityStore } from '../../../src/composables/piniaStores'
d... | owncloud/web/packages/web-pkg/tests/unit/services/passwordPolicy.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/services/passwordPolicy.spec.ts",
"repo_id": "owncloud",
"token_count": 2209
} | 804 |
<template>
<nav id="mobile-nav">
<oc-button id="mobile-nav-button" appearance="raw">
{{ activeNavItem.name }}
<oc-icon name="arrow-drop-down" />
</oc-button>
<oc-drop
drop-id="mobile-nav-drop"
toggle="#mobile-nav-button"
mode="click"
padding-size="small"
close-on-... | owncloud/web/packages/web-runtime/src/components/MobileNav.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/MobileNav.vue",
"repo_id": "owncloud",
"token_count": 727
} | 805 |
export * from './useLayout'
| owncloud/web/packages/web-runtime/src/composables/layout/index.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/composables/layout/index.ts",
"repo_id": "owncloud",
"token_count": 9
} | 806 |
// just a dummy function to trick gettext tools
function $gettext(msg: string): string {
return msg
}
export const additionalTranslations = {
admin: $gettext('Admin'),
spaceAdmin: $gettext('Space Admin'),
user: $gettext('User'),
guest: $gettext('Guest'),
activities: $gettext('Activities'),
noActivities: ... | owncloud/web/packages/web-runtime/src/helpers/additionalTranslations.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/helpers/additionalTranslations.ts",
"repo_id": "owncloud",
"token_count": 235
} | 807 |
<template>
<div class="oc-login-card oc-position-center">
<img class="oc-login-logo" :src="logoImg" alt="" :aria-hidden="true" />
<div class="oc-login-card-body oc-width-medium">
<h2 class="oc-login-card-title" v-text="cardTitle" />
<p v-text="cardHint" />
</div>
<div class="oc-login-card-... | owncloud/web/packages/web-runtime/src/pages/logout.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/pages/logout.vue",
"repo_id": "owncloud",
"token_count": 585
} | 808 |
import GdprExport from 'web-runtime/src/components/Account/GdprExport.vue'
import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers'
import { mock, mockDeep } from 'vitest-mock-extended'
import { ClientService } from '@ownclouders/web-pkg'
import { Resource } from '@ownclouders/web-client/s... | owncloud/web/packages/web-runtime/tests/unit/components/Account/GdprExport.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Account/GdprExport.spec.ts",
"repo_id": "owncloud",
"token_count": 1244
} | 809 |
import { WebThemeType, useThemeStore } from '@ownclouders/web-pkg'
import { mock } from 'vitest-mock-extended'
import ThemeSwitcher from 'web-runtime/src/components/ThemeSwitcher.vue'
import defaultTheme from 'web-runtime/themes/owncloud/theme.json'
import { defaultPlugins, defaultStubs, mount } from 'web-test-helpers'... | owncloud/web/packages/web-runtime/tests/unit/components/Topbar/ThemeSwitcher.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/ThemeSwitcher.spec.ts",
"repo_id": "owncloud",
"token_count": 838
} | 810 |
import accessDenied from '../../../src/pages/accessDenied.vue'
import { defaultComponentMocks, defaultPlugins, mount } from 'web-test-helpers'
const selectors = {
logInAgainButton: '#exitAnchor'
}
describe('access denied page', () => {
it('renders component', () => {
const { wrapper } = getWrapper()
expec... | owncloud/web/packages/web-runtime/tests/unit/pages/accessDenied.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/pages/accessDenied.spec.ts",
"repo_id": "owncloud",
"token_count": 457
} | 811 |
import { mount, VueWrapper } from '@vue/test-utils'
import { defineComponent, nextTick } from 'vue'
import { defaultPlugins, DefaultPluginsOptions } from './defaultPlugins'
import { createRouter as _createRouter } from '../../web-runtime/src/router'
import { createMemoryHistory, RouterOptions } from 'vue-router'
import... | owncloud/web/packages/web-test-helpers/src/helpers.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/helpers.ts",
"repo_id": "owncloud",
"token_count": 819
} | 812 |
sonar.projectKey=owncloud_web
sonar.organization=owncloud-1
sonar.projectName=Web
sonar.projectVersion=9.0.0-alpha.3
sonar.host.url=https://sonarcloud.io
# =====================================================
# Meta-data for the project
# =====================================================
sonar.links.homepage=... | owncloud/web/sonar-project.properties/0 | {
"file_path": "owncloud/web/sonar-project.properties",
"repo_id": "owncloud",
"token_count": 468
} | 813 |
const sleepWhenOutstandingAjaxCalls = function (result, retryWithZero) {
// sleep in all cases, because even with zero calls we don't know if there isn't
// one that might start in the next tick, so to be sure sleep again
this.pause(this.globals.waitForConditionPollInterval)
if (result.value > 0) {
this.wai... | owncloud/web/tests/acceptance/customCommands/waitForOutstandingAjaxCalls.js/0 | {
"file_path": "owncloud/web/tests/acceptance/customCommands/waitForOutstandingAjaxCalls.js",
"repo_id": "owncloud",
"token_count": 338
} | 814 |
# the tests skipped on OCIS are listed in issue https://github.com/owncloud/web/issues/7264 for further implementation in playwright
Feature: Autocompletion of share-with names
As a user
I want to share files, with minimal typing, to the right people or groups
So that I can efficiently share my files with other u... | owncloud/web/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingAutocompletion/shareAutocompletionSpecialChars.feature",
"repo_id": "owncloud",
"token_count": 929
} | 815 |
Feature: File Upload
As a user
I would like to be able to upload files via the WebUI
So that I can store files in ownCloud
Background:
Given user "Alice" has been created with default attributes and without skeleton files in the server
And user "Alice" has created folder "simple-folder" in the server
... | owncloud/web/tests/acceptance/features/webUIUpload/upload.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUIUpload/upload.feature",
"repo_id": "owncloud",
"token_count": 2107
} | 816 |
module.exports = {
/**
* Returns an XPath string literal to use for searching values inside
* element/attribute.
*
* This wraps them in single quotes, double quotes, or as a concat function,
* as xpath expressions can contain single or double quotes but not both.
* Also, xpath does not support escap... | owncloud/web/tests/acceptance/helpers/xpath.js/0 | {
"file_path": "owncloud/web/tests/acceptance/helpers/xpath.js",
"repo_id": "owncloud",
"token_count": 367
} | 817 |
const util = require('util')
module.exports = {
commands: {
isBatchActionButtonVisible: async function (batchButtonName, expectedVisible = true) {
let result = false
const batchActionButtonEl = {
selector: this.getBatchActionButtonElementSelector(batchButtonName),
locateStrategy: 'xpat... | owncloud/web/tests/acceptance/pageObjects/appBarActions.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/appBarActions.js",
"repo_id": "owncloud",
"token_count": 617
} | 818 |
module.exports = {
commands: {
waitTillLoaded: function () {
const element = this.elements.userDisabledMessage
return this.useStrategy(element).waitForElementVisible(element)
}
},
elements: {
userDisabledMessage: {
locateStrategy: 'xpath',
selector: '//li[normalize-space()="Use... | owncloud/web/tests/acceptance/pageObjects/userDisabledPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/userDisabledPage.js",
"repo_id": "owncloud",
"token_count": 135
} | 819 |
const { client } = require('nightwatch-api')
const assert = require('assert')
const _ = require('lodash')
const { Given, When, Then } = require('@cucumber/cucumber')
const textEditor = client.page.textEditorPage()
const filesList = client.page.FilesPageElement.filesList()
Given('the user has opened file {string} in t... | owncloud/web/tests/acceptance/stepDefinitions/textEditorContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/textEditorContext.js",
"repo_id": "owncloud",
"token_count": 1188
} | 820 |
import { World as CucumberWorld, IWorldOptions } from '@cucumber/cucumber'
import { Pickle } from '@cucumber/messages'
import { config } from '../../config'
import { environment } from '../../support'
import { state } from './shared'
interface WorldOptions extends IWorldOptions {
parameters: { [key: string]: string ... | owncloud/web/tests/e2e/cucumber/environment/world.ts/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/environment/world.ts",
"repo_id": "owncloud",
"token_count": 378
} | 821 |
Feature: Application menu
As a user
I want to open the editor via the application menu
So that I have instant access
Scenario: Open text editor via application menu
Given "Admin" creates following user using API
| id |
| Alice |
And "Alice" logs in
When "Alice" opens the "text-editor... | owncloud/web/tests/e2e/cucumber/features/smoke/applicationMenu.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/applicationMenu.feature",
"repo_id": "owncloud",
"token_count": 200
} | 822 |
Feature: Upload large resources
As a user
I want to upload large resources
So that I can pause and resume the upload
Scenario: Upload large resources in personal space
Given "Admin" creates following user using API
| id |
| Alice |
And the user creates a file "largefile.txt" of "1GB" siz... | owncloud/web/tests/e2e/cucumber/features/smoke/uploadResumable.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/uploadResumable.feature",
"repo_id": "owncloud",
"token_count": 328
} | 823 |
import { When } from '@cucumber/cucumber'
import { World } from '../../environment'
import { objects } from '../../../support'
When(
'{string} navigates to {string} details panel of file {string} of space {string} through the URL',
async function (
this: World,
stepUser: string,
detailsPanel: string,
... | owncloud/web/tests/e2e/cucumber/steps/ui/navigateByUrl.ts/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/navigateByUrl.ts",
"repo_id": "owncloud",
"token_count": 720
} | 824 |
import { checkResponseStatus, request } from '../http'
import { User } from '../../types'
import join from 'join-path'
import { getPersonalSpaceId, getSpaceIdBySpaceName } from '../graph'
import { Response } from 'node-fetch'
import convert from 'xml-js'
import _ from 'lodash/object'
import { createShare } from '../sha... | owncloud/web/tests/e2e/support/api/davSpaces/spaces.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/davSpaces/spaces.ts",
"repo_id": "owncloud",
"token_count": 2545
} | 825 |
export { disableAutoAcceptShare } from './settings'
| owncloud/web/tests/e2e/support/api/userSettings/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/userSettings/index.ts",
"repo_id": "owncloud",
"token_count": 13
} | 826 |
import { Page } from '@playwright/test'
import * as po from './actions'
export class General {
#page: Page
constructor({ page }: { page: Page }) {
this.#page = page
}
async uploadLogo({ path }: { path: string }): Promise<void> {
await po.uploadLogo(path, this.#page)
}
async resetLogo(): Promise<voi... | owncloud/web/tests/e2e/support/objects/app-admin-settings/general/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/general/index.ts",
"repo_id": "owncloud",
"token_count": 133
} | 827 |
import { WithMe } from './shares/withMe'
import { Personal } from './spaces/personal'
import { Projects } from './spaces/projects'
import { WithOthers } from './shares/withOthers'
export { Public } from './public'
import { Overview } from './trashbin/overview'
export const shares = { WithMe, WithOthers }
export cons... | owncloud/web/tests/e2e/support/objects/app-files/page/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/page/index.ts",
"repo_id": "owncloud",
"token_count": 115
} | 828 |
import { Page } from '@playwright/test'
import util from 'util'
import { sidebar, editor } from '../utils'
import Collaborator, { ICollaborator } from '../share/collaborator'
import { createLink } from '../link/actions'
import { File } from '../../../types'
const newSpaceMenuButton = '#new-space-menu-btn'
const space... | owncloud/web/tests/e2e/support/objects/app-files/spaces/actions.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/spaces/actions.ts",
"repo_id": "owncloud",
"token_count": 3446
} | 829 |
export { actorStore } from './actor'
export { createdLinkStore } from './link'
export { createdSpaceStore } from './space'
export { dummyUserStore, createdUserStore } from './user'
export { dummyGroupStore, createdGroupStore } from './group'
export { userRoleStore } from './role'
export { keycloakRealmRoles } from './k... | owncloud/web/tests/e2e/support/store/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/store/index.ts",
"repo_id": "owncloud",
"token_count": 97
} | 830 |
const IntersectionObserverMock = vi.fn(() => ({
disconnect: vi.fn(),
observe: vi.fn(),
takeRecords: vi.fn(),
unobserve: vi.fn()
}))
vi.stubGlobal('IntersectionObserver', IntersectionObserverMock)
const ResizeObserverMock = vi.fn(() => ({
observe: vi.fn(),
unobserve: vi.fn()
}))
vi.stubGlobal('ResizeObser... | owncloud/web/tests/unit/config/vitest.init.ts/0 | {
"file_path": "owncloud/web/tests/unit/config/vitest.init.ts",
"repo_id": "owncloud",
"token_count": 147
} | 831 |
<?php
//db connect
function connect($host=DBHOST,$username=DBUSER,$password=DBPW,$databasename=DBNAME,$port=DBPORT){
$link=@mysqli_connect($host, $username, $password, $databasename, $port);
if(mysqli_connect_errno()){
// exit(mysqli_connect_error());
exit('数据库连接失败,请检查config.inc.php配置文件');
}
mysqli_set_chars... | zhuifengshaonianhanlu/pikachu/pkxss/inc/mysql.inc.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/inc/mysql.inc.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 793
} | 832 |
<?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 = "rce_ping.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/rce/rce_ping.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/rce/rce_ping.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1380
} | 833 |
<?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 = "ssrf.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',... | zhuifengshaonianhanlu/pikachu/vul/ssrf/ssrf.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/ssrf/ssrf.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1330
} | 834 |
<?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 = "xss_03.php"){
$ACTIVE = array('','','','','','','','active open','','','','','','','','','active','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/xss/xss_03.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/xss_03.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1396
} | 835 |
# 8th Wall Web Examples - AFrame - Flyer
This example uses image targets to display information about jellyfish on a flyer. It uses the xrextras-named-image-target component to connect an <a-entity> to an image target by name while the xrextras-play-video component enables video playback.
 {
const recenter = () => {
this.el.emit('recenter')
this.el.removeEventListener('sky-coaching-overlay.hide', recenter)
}
this.el.addEventListener('sky-coaching-overlay.hide', recenter)
},
})
| 8thwall/web/examples/aframe/sky/sky-recenter.js/0 | {
"file_path": "8thwall/web/examples/aframe/sky/sky-recenter.js",
"repo_id": "8thwall",
"token_count": 116
} | 1 |
# 8th Wall Web Examples - Camera Pipeline - QR Code
This example shows how to create an 8th Wall Web that accesses the camera pixels and processes
them with a computer vision library.
QR Code
:----------:

[Try Demo (mobile)](https://apps.8thwall.com/8thWall/... | 8thwall/web/examples/camerapipeline/qrcode/README.md/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/README.md",
"repo_id": "8thwall",
"token_count": 142
} | 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/formatinf.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/formatinf.js",
"repo_id": "8thwall",
"token_count": 1630
} | 3 |
/*jshint esversion: 6, asi: true, laxbreak: true*/
// namedimagetarget.js: Controls visibility, position, orientation, and scaling of a 3D object that
// should attach to a real-world image target. This script should be attached to an entity of which
// the target content is a child. The name of the image target shoul... | 8thwall/web/gettingstarted/playcanvas/scripts/namedimagetarget.js/0 | {
"file_path": "8thwall/web/gettingstarted/playcanvas/scripts/namedimagetarget.js",
"repo_id": "8thwall",
"token_count": 171
} | 4 |
import type {ComponentDefinition} from 'aframe'
import {ensureXrAndExtras} from '../ensure'
declare const THREE: any
declare const XRExtras: any
const captureButtonComponent: ComponentDefinition = {
schema: {
captureMode: {default: 'standard'},
},
init() {
ensureXrAndExtras().then(() => {
if (thi... | 8thwall/web/xrextras/src/aframe/components/recorder-components.ts/0 | {
"file_path": "8thwall/web/xrextras/src/aframe/components/recorder-components.ts",
"repo_id": "8thwall",
"token_count": 1487
} | 5 |
#loadingContainer {
z-index: 800;
font-family: 'Nunito-SemiBold', sans-serif;
}
#loadBackground {
z-index: 10;
background-color: #101118;
pointer-events: auto;
}
.xrextras-old-style #loadBackground {
background-color: white;
}
#requestingCameraPermissions {
z-index: 11;
position: absolute;
top: 0;
... | 8thwall/web/xrextras/src/loadingmodule/loading-module.css/0 | {
"file_path": "8thwall/web/xrextras/src/loadingmodule/loading-module.css",
"repo_id": "8thwall",
"token_count": 2955
} | 6 |
<svg focusable="false" viewBox="0 0 24 24" aria-hidden="true">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(6, 7)" fill="#4A90E2">
<g>
<path d="M6.39209659,3.4962638 L6.39209659,9.59103653 C6.39209659,
9.98342289 6.07402841,10.3013206 5.6818125... | 8thwall/web/xrextras/src/pwainstallermodule/ios-action-icon-svg.html/0 | {
"file_path": "8thwall/web/xrextras/src/pwainstallermodule/ios-action-icon-svg.html",
"repo_id": "8thwall",
"token_count": 1129
} | 7 |
## 1、对样式的操作
### 1.1、点击按钮设置 div 的宽高和背景颜色
```html
<body>
<input type="button" value="显示颜色" id="btn">
<div id="dv"></div>
<script src="common.js"></script>
<script>
my$("btn").onclick = function () {
my$("dv").style.width = "200px";
my$("dv").style.height = "100px";
my$("dv").style.backgroun... | Daotin/Web/03-JavaScript/02-DOM/02-对样式的操作,获取元素的方式.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/02-DOM/02-对样式的操作,获取元素的方式.md",
"repo_id": "Daotin",
"token_count": 4032
} | 8 |
## 一、this
this 指的是某一对象。但是在不同的场景,this表示的是不同的对象。
下面大概分为5种情况:
### 1、window
```js
// 第一种:this 指的就是 window
function fn() {
console.log(this);
};
console.log(this);
```
### 2、事件中的this
```js
// 第二种:所有事件函数中的this,都是这个监听事件监听对象
//在事件函数中 this===e.currentTarget 也就是事件侦听的对象。在事件中使用this,其实事件函数内部实现极力就是使用call等将事件中的this改为 e.cu... | Daotin/Web/03-JavaScript/04-JavaScript高级知识/05-apply与call,bind,闭包和沙箱.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/05-apply与call,bind,闭包和沙箱.md",
"repo_id": "Daotin",
"token_count": 5378
} | 9 |
## 一、绑定事件
### 1、事件名(不推荐)
语法:
```js
// 元素.事件名(数据,事件处理函数);
$("div").click({a:1,b:2}, function(e){
console.log(e.data); // {a:1,b:2}
});
```
> 注意:数据的解释参考 on绑定事件。
示例:
```js
// 绑定鼠标进入,离开,点击事件
$("#btn").mouseenter(function () {
console.log("mouseenter");
});
$("#btn").mouseleave(function () {
console.log("mou... | Daotin/Web/04-jQuery/06-jQuery绑定解绑事件.md/0 | {
"file_path": "Daotin/Web/04-jQuery/06-jQuery绑定解绑事件.md",
"repo_id": "Daotin",
"token_count": 5107
} | 10 |
## 一、基础知识
### 1、屏幕
移动设备与PC设备最大的差异在于屏幕,这主要体现在**屏幕尺寸**和**屏幕分辨率**两个方面。
通常我们所指的屏幕尺寸,实际上指的是屏幕对角线的长度(一般用英寸来度量)。
而分辨率则一般用像素来度量 `px`,表示屏幕水平和垂直方向的像素数,例如 1920*1080 指的是屏幕垂直方向和水平方向分别有1920和1080个像素点而构成。
### 2、长度单位
在Web开发中可以使用`px`(像素)、`em`、`pt`(点)、`in`(英寸)、`cm`(厘米)做为长度单位,我们最常用`px`(像素)做为长度单位。
我们可以将上述的几种长度单位划分成相对长度单位和绝对长度单位。
... | Daotin/Web/07-移动Web开发/01-屏幕相关基本知识,调试,视口,屏幕适配.md/0 | {
"file_path": "Daotin/Web/07-移动Web开发/01-屏幕相关基本知识,调试,视口,屏幕适配.md",
"repo_id": "Daotin",
"token_count": 8116
} | 11 |
/* Zepto 1.2.0 - zepto event ajax form ie fx selector touch - zeptojs.com/license */
(function(global, factory) {
if (typeof define === 'function' && define.amd)
define(function() { return factory(global) })
else
factory(global)
}(this, function(window) {
var Zepto = (function() {
var undefined, key, $,... | Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/zepto-master/dist/zepto.js/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/zepto-master/dist/zepto.js",
"repo_id": "Daotin",
"token_count": 28786
} | 12 |
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.#{$fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.#{$fa-css-prefix}-2x { font-size: 2em; }
.#{$fa-css-prefix}-3x { font-size: 3em; }
.#{$fa-css-prefix}-4x { font-... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_larger.scss/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_larger.scss",
"repo_id": "Daotin",
"token_count": 162
} | 13 |
## sea.js简单使用教程
1. 下载sea.js, 并引入
* 官网: http://seajs.org/
* github : https://github.com/seajs/seajs
* 将sea.js导入项目: js/libs/sea.js
2. 创建项目结构
```
|-js
|-libs
|-sea.js
|-modules
|-module1.js
|-module2.js
|-module3.js
|-module4.js
|-main.js
|-index.html
```
3. 定义sea... | Daotin/Web/09-模块化规范/06-CMD-SeaJS模块化教程.md/0 | {
"file_path": "Daotin/Web/09-模块化规范/06-CMD-SeaJS模块化教程.md",
"repo_id": "Daotin",
"token_count": 1145
} | 14 |
- [一、Vue组件](#%E4%B8%80vue%E7%BB%84%E4%BB%B6)
- [二、定义组件](#%E4%BA%8C%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6)
* [1、定义全局组件](#1%E5%AE%9A%E4%B9%89%E5%85%A8%E5%B1%80%E7%BB%84%E4%BB%B6)
* [2、定义局部组件](#2%E5%AE%9A%E4%B9%89%E5%B1%80%E9%83%A8%E7%BB%84%E4%BB%B6)
- [三、动态组件](#%E4%B8%89%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6)
- [四、组件间传值]... | Daotin/Web/12-Vue/05-组件.md/0 | {
"file_path": "Daotin/Web/12-Vue/05-组件.md",
"repo_id": "Daotin",
"token_count": 22135
} | 15 |
## 动态组件
我们使用过多标签的`is`来进行组件之间的切换。
```html
<component :is="currentTabComponent"></component>
```
这时每次切换到新的组件的时候,组件都会被从新加载,这意味着切换之前组件的状态不会被保存。
但是有些时候当在这些组件之间切换的时候,会想保持这些组件的状态,以避免反复重渲染导致的性能问题。
为了解决这个问题,我们可以用一个 `<keep-alive>` 元素将其动态组件包裹起来。
```html
<!-- 失活的组件将会被缓存!-->
<keep-alive>
<component :is="currentTabComponent"... | Daotin/Web/12-Vue/动态组件 & 异步组件.md/0 | {
"file_path": "Daotin/Web/12-Vue/动态组件 & 异步组件.md",
"repo_id": "Daotin",
"token_count": 524
} | 16 |
/*
Navicat Premium Data Transfer
Source Server : 阿里云MySQL
Source Server Type : MySQL
Source Server Version : 50718
Source Host : rm-wz9lp2i9322g0n06zvo.mysql.rds.aliyuncs.com:3306
Source Schema : web
Target Server Type : MySQL
Target Server Version : 50718
File Encoding ... | Humsen/web/docs/数据库部署/第1步 - 创建数据库/code_library.sql/0 | {
"file_path": "Humsen/web/docs/数据库部署/第1步 - 创建数据库/code_library.sql",
"repo_id": "Humsen",
"token_count": 553
} | 17 |
package pers.husen.web.bean.vo;
import java.util.Date;
/**
* @author 何明胜
*
* 2017年9月28日
*/
public class CodeLibraryVo extends ArticleCategoryVo{
private static final long serialVersionUID = 1L;
private int codeId;
private String codeTitle;
private String codeAuthor;
private Date codeDate;
private int code... | Humsen/web/web-core/src/pers/husen/web/bean/vo/CodeLibraryVo.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/bean/vo/CodeLibraryVo.java",
"repo_id": "Humsen",
"token_count": 1152
} | 18 |
/**
* 通用处理程序
*
* @author 何明胜
*
* 2017年10月21日
*/
package pers.husen.web.common.handler; | Humsen/web/web-core/src/pers/husen/web/common/handler/package-info.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/common/handler/package-info.java",
"repo_id": "Humsen",
"token_count": 58
} | 19 |
package pers.husen.web.config.listener;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import pers.husen.web.config.ProjectDeployConfig;
import pers.husen.web.config.Log4j2Config;
/**
* web启动时首先启动监听器,初始化一些配置,如路径
*
* @author 何明胜
*
* ... | Humsen/web/web-core/src/pers/husen/web/config/listener/WebInitConfigListener.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/config/listener/WebInitConfigListener.java",
"repo_id": "Humsen",
"token_count": 383
} | 20 |
package pers.husen.web.dao.impl;
import java.util.ArrayList;
import java.util.Date;
import pers.husen.web.bean.vo.ReleaseFeatureVo;
import pers.husen.web.dao.ReleaseFeatureDao;
import pers.husen.web.dbutil.DbManipulationUtils;
import pers.husen.web.dbutil.DbQueryUtils;
import pers.husen.web.dbutil.mappingdb.ReleaseFe... | Humsen/web/web-core/src/pers/husen/web/dao/impl/ReleaseFeatureDaoImpl.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dao/impl/ReleaseFeatureDaoImpl.java",
"repo_id": "Humsen",
"token_count": 868
} | 21 |
package pers.husen.web.dbutil.mappingdb;
/**
* 用户信息数据库
*
* @author 何明胜
*
* 2017年10月20日
*/
public class UserInfoMapping {
/**
* 数据库名称
*/
public static final String DB_NAME = "user_info";
public static final String USER_ID = "user_id";
public static final String USER_NAME = "user_name";
public static fi... | Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/UserInfoMapping.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/UserInfoMapping.java",
"repo_id": "Humsen",
"token_count": 291
} | 22 |
package pers.husen.web.servlet.article;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import... | Humsen/web/web-core/src/pers/husen/web/servlet/article/BlogUploadSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/article/BlogUploadSvt.java",
"repo_id": "Humsen",
"token_count": 1007
} | 23 |
package pers.husen.web.servlet.module;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import pers.husen.web.common.constan... | Humsen/web/web-core/src/pers/husen/web/servlet/module/MessageModuleSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/module/MessageModuleSvt.java",
"repo_id": "Humsen",
"token_count": 432
} | 24 |
@charset "UTF-8";
.index-hr {
margin: 0;
}
#lwlhitokoto {
border-left: 5px solid #0073d8;
border-right: 5px solid #0073d8;
background-color: #3288d31a;
padding: 5px;
text-align: center;
color: #0073d8;
margin: 0 0 42px 0;
} | Humsen/web/web-mobile/WebContent/css/index/index.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/index/index.css",
"repo_id": "Humsen",
"token_count": 113
} | 25 |
@charset "UTF-8";
/************** 新版编辑文章 ***************/
.editor-form-div {
margin-top: 20px;
}
.article-type {
width: initial;
} | Humsen/web/web-mobile/WebContent/css/upload/editor-article.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/upload/editor-article.css",
"repo_id": "Humsen",
"token_count": 69
} | 26 |
<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>何明胜的个人网站</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="descr... | Humsen/web/web-mobile/WebContent/index.jsp/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/index.jsp",
"repo_id": "Humsen",
"token_count": 1376
} | 27 |
/**
* @author 何明胜
*
* 2017年9月27日
*/
$(function(){
loadNewVersionFeature();//加载新版本特性
});
/**
* 显示最新版本特性
* @returns
*/
function loadNewVersionFeature(){
$.ajax({
type : 'POST',
url : '/latestRlseFetr.hms',
dataType : 'json',
success : function(response){
$('#newVersionFeature').append('<div class="c... | Humsen/web/web-mobile/WebContent/js/index/version-feature.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/index/version-feature.js",
"repo_id": "Humsen",
"token_count": 565
} | 28 |
<link rel="stylesheet" href="/css/login/email-check.css">
<form id="form_emailValidate" class="form-horizontal">
<div class="form-group form-group-div">
<label class="col-sm-3 control-label form-label">邮箱</label>
<div class="col-sm-6 form-input-div">
<p id="txt_emailShow" class="form-control-static email-show"... | Humsen/web/web-mobile/WebContent/module/login/email_check.html/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/module/login/email_check.html",
"repo_id": "Humsen",
"token_count": 355
} | 29 |
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="icomoon" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="... | Humsen/web/web-mobile/WebContent/plugins/editormd/fonts/editormd-logo.svg/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/fonts/editormd-logo.svg",
"repo_id": "Humsen",
"token_count": 519
} | 30 |
// 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/comment/comment.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/comment/comment.js",
"repo_id": "Humsen",
"token_count": 3132
} | 31 |
// 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/fold/comment-fold.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/fold/comment-fold.js",
"repo_id": "Humsen",
"token_count": 773
} | 32 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Depends on csslint.js from https://github.com/stubbornella/csslint
// declare global: CSSLint
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/lint/css-lint.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/lint/css-lint.js",
"repo_id": "Humsen",
"token_count": 412
} | 33 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/* Just enough of CodeMirror to run runMode under node.js */
// declare global: StringStream
function splitLines(string){ return string.split(/\r?\n|\r/); };
function StringStream(string) {... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/runmode/runmode.node.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/runmode/runmode.node.js",
"repo_id": "Humsen",
"token_count": 1576
} | 34 |
// 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/wrap/hardwrap.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/wrap/hardwrap.js",
"repo_id": "Humsen",
"token_count": 2231
} | 35 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-scss");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "scss"); }
MT('url_with_... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/css/scss_test.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/css/scss_test.js",
"repo_id": "Humsen",
"token_count": 1238
} | 36 |
// 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/gas/gas.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/gas/gas.js",
"repo_id": "Humsen",
"token_count": 3868
} | 37 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("locals",
"[ke... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/javascript/test.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/javascript/test.js",
"repo_id": "Humsen",
"token_count": 3092
} | 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"), require("../javascript/javascript"));
else if (typeof def... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/pegjs/pegjs.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/pegjs/pegjs.js",
"repo_id": "Humsen",
"token_count": 1679
} | 39 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }
MT("mat... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/xml/test.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/xml/test.js",
"repo_id": "Humsen",
"token_count": 734
} | 40 |
.cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; }
.cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
.cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; }
.cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; }
.cm-s-colorforth .CodeMirror... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/colorforth.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/colorforth.css",
"repo_id": "Humsen",
"token_count": 728
} | 41 |
/*
Solarized theme for code-mirror
http://ethanschoonover.com/solarized
*/
/*
Solarized color pallet
http://ethanschoonover.com/solarized/img/solarized-palette.png
*/
.solarized.base03 { color: #002b36; }
.solarized.base02 { color: #073642; }
.solarized.base01 { color: #586e75; }
.solarized.base00 { color: #657b83; }... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/solarized.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/theme/solarized.css",
"repo_id": "Humsen",
"token_count": 2149
} | 42 |
/*!
* Code block dialog plugin for Editor.md
*
* @file code-block-dialog.js
* @author pandao
* @version 1.2.0
* @updateTime 2015-03-07
* {@link https://github.com/pandao/editor.md}
* @license MIT
*/
(function() {
var factory = function (exports) {
var cmEditor;
var pluginNa... | Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/code-block-dialog/code-block-dialog.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/code-block-dialog/code-block-dialog.js",
"repo_id": "Humsen",
"token_count": 4456
} | 43 |
/*!
* Preformatted text dialog plugin for Editor.md
*
* @file preformatted-text-dialog.js
* @author pandao
* @version 1.2.0
* @updateTime 2015-03-07
* {@link https://github.com/pandao/editor.md}
* @license MIT
*/
(function() {
var factory = function (exports) {
var cmEditor;
... | Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/preformatted-text-dialog/preformatted-text-dialog.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/plugins/preformatted-text-dialog/preformatted-text-dialog.js",
"repo_id": "Humsen",
"token_count": 3149
} | 44 |
/*
* jQuery FlexSlider v2.6.0
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 and later license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*
*/
/* ==============================================================... | Humsen/web/web-mobile/WebContent/plugins/template/css/flexslider.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/template/css/flexslider.css",
"repo_id": "Humsen",
"token_count": 2442
} | 45 |
/**
* @author 何明胜
*
* 2017年12月20日
*/
/** 加载插件 * */
$.ajax({
url : '/plugins/plugins.html',
async : false,
type : 'GET',
success : function(data) {
$($('head')[0]).find('script:first').after(data);
}
});
$(function() {
/** 顶部导航栏 * */
$.ajax({
url : '/module/navigation/topbar.html',
async : false,
... | Humsen/web/web-pc/WebContent/js/article/code-template.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/js/article/code-template.js",
"repo_id": "Humsen",
"token_count": 2843
} | 46 |
<link rel="stylesheet" href="/css/personal_center/modify-email.css">
<!-- 修改用户密码脚本 -->
<script src="/js/personal_center/modify-email.js"></script>
<form id="form_modifyEmail" class="form-horizontal modify-email-form">
<div class="form-group">
<label class="col-sm-3 control-label" for="txt_modifyEmail">新邮箱</label>
... | Humsen/web/web-pc/WebContent/personal_center/modify_email1.html/0 | {
"file_path": "Humsen/web/web-pc/WebContent/personal_center/modify_email1.html",
"repo_id": "Humsen",
"token_count": 476
} | 47 |
/*
* Styling for DataTables with Semantic UI
*/
table.dataTable.table {
margin: 0;
}
table.dataTable.table thead th,
table.dataTable.table thead td {
position: relative;
}
table.dataTable.table thead th.sorting, table.dataTable.table thead th.sorting_asc, table.dataTable.table thead th.sorting_desc,
table.dataTab... | Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.semanticui.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/DataTables/css/dataTables.semanticui.css",
"repo_id": "Humsen",
"token_count": 1084
} | 48 |
/**
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @author http://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license Commercial: http://bootstrapvalidator.com/license/
* ... | Humsen/web/web-pc/WebContent/plugins/validator/css/bootstrapValidator.css/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/validator/css/bootstrapValidator.css",
"repo_id": "Humsen",
"token_count": 309
} | 49 |
(function($) {
/**
* Greek language package
* Translated by @pRieStaKos
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Παρακαλώ εισάγετε μια έγκυρη κωδικοποίηση base 64'
},
between: {
'default'... | Humsen/web/web-pc/WebContent/plugins/validator/js/language/gr_EL.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/validator/js/language/gr_EL.js",
"repo_id": "Humsen",
"token_count": 11596
} | 50 |
(function($) {
/**
* Thai language package
* Translated by @figgaro
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'กรุณาระบุ base 64 encoded ให้ถูกต้อง'
},
between: {
'default': 'กรุณาระบุค่าระ... | Humsen/web/web-pc/WebContent/plugins/validator/js/language/th_TH.js/0 | {
"file_path": "Humsen/web/web-pc/WebContent/plugins/validator/js/language/th_TH.js",
"repo_id": "Humsen",
"token_count": 13091
} | 51 |
#发送邮箱
email.from.user=123@qq.com
email.from.password=123456
#接收邮箱
email.to.user=123@qq.com | Humsen/web/web-pc/config/config_template.properties/0 | {
"file_path": "Humsen/web/web-pc/config/config_template.properties",
"repo_id": "Humsen",
"token_count": 58
} | 52 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_advanced_search_x2x
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-03 03:49+0000\n"
"PO-Re... | OCA/web/web_advanced_search/i18n/nl_NL.po/0 | {
"file_path": "OCA/web/web_advanced_search/i18n/nl_NL.po",
"repo_id": "OCA",
"token_count": 623
} | 53 |
/** @odoo-module **/
/*
Copyright 2018 Tecnativa - Jairo Llopis
Copyright 2020 Tecnativa - Alexandre Díaz
Copyright 2022 Camptocamp SA - Iván Todorovich
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
*/
import {_t} from "web.core";
const JOIN_MAPPING = {
"&": _t(" and "),
"|": _... | OCA/web/web_advanced_search/static/src/js/utils.esm.js/0 | {
"file_path": "OCA/web/web_advanced_search/static/src/js/utils.esm.js",
"repo_id": "OCA",
"token_count": 868
} | 54 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_chatter_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-20 02:38+0000\n"
"Last-Translator: jappi00 <jappi2000@ewetel.net>\n"
"Language-Team: ... | OCA/web/web_chatter_position/i18n/de.po/0 | {
"file_path": "OCA/web/web_chatter_position/i18n/de.po",
"repo_id": "OCA",
"token_count": 516
} | 55 |
/** @odoo-module **/
/*
Copyright 2023 Camptocamp SA (https://www.camptocamp.com).
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
*/
import {FormCompiler} from "@web/views/form/form_compiler";
import {FormController} from "@web/views/form/form_controller";
import {MailFormCompiler} from "@mail/... | OCA/web/web_chatter_position/static/src/js/web_chatter_position.esm.js/0 | {
"file_path": "OCA/web/web_chatter_position/static/src/js/web_chatter_position.esm.js",
"repo_id": "OCA",
"token_count": 2861
} | 56 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_company_color
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-07-08 05:19+0000\n"
"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
"Language-Team: none\n"
"La... | OCA/web/web_company_color/i18n/zh_CN.po/0 | {
"file_path": "OCA/web/web_company_color/i18n/zh_CN.po",
"repo_id": "OCA",
"token_count": 1534
} | 57 |
=================================================
Show confirmation dialogue before copying records
=================================================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. ... | OCA/web/web_copy_confirm/README.rst/0 | {
"file_path": "OCA/web/web_copy_confirm/README.rst",
"repo_id": "OCA",
"token_count": 1089
} | 58 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dark_mode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-02 20:35+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: ... | OCA/web/web_dark_mode/i18n/es.po/0 | {
"file_path": "OCA/web/web_dark_mode/i18n/es.po",
"repo_id": "OCA",
"token_count": 494
} | 59 |
/** @odoo-module **/
import {browser} from "@web/core/browser/browser";
import {registry} from "@web/core/registry";
export function darkModeSwitchItem(env) {
return {
type: "switch",
id: "color_scheme.switch",
description: env._t("Dark Mode"),
callback: () => {
env.ser... | OCA/web/web_dark_mode/static/src/js/switch_item.esm.js/0 | {
"file_path": "OCA/web/web_dark_mode/static/src/js/switch_item.esm.js",
"repo_id": "OCA",
"token_count": 715
} | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.