text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { computed, unref } from 'vue'
import { useGettext } from 'vue3-gettext'
import { FileAction, FileActionOptions } from '../../actions'
import { CreateLinkModal } from '../../../components'
import { useAbility } from '../../ability'
import { LinkShare, isProjectSpaceResource } from '@ownclouders/web-client/src/he... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCreateLink.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCreateLink.ts",
"repo_id": "owncloud",
"token_count": 2004
} | 824 |
import { isSameResource } from '../../../helpers/resource'
import { isLocationTrashActive, isLocationSharesActive } from '../../../router'
import { Resource } from '@ownclouders/web-client'
import { dirname, join } from 'path'
import { WebDAV } from '@ownclouders/web-client/src/webdav'
import {
SpaceResource,
isSha... | owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsRename.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsRename.ts",
"repo_id": "owncloud",
"token_count": 3088
} | 825 |
import { SpaceResource } from '@ownclouders/web-client'
import { computed } from 'vue'
import { SpaceAction, SpaceActionOptions } from '../types'
import { useGettext } from 'vue3-gettext'
import { useAbility } from '../../ability'
import { useClientService } from '../../clientService'
import { useLoadingService } from ... | owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDuplicate.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDuplicate.ts",
"repo_id": "owncloud",
"token_count": 2082
} | 826 |
import { computed, unref, Ref } from 'vue'
import { useRouter, useRoute, useRouteParam } from '../router'
import { ClientService } from '../../services'
import { basename } from 'path'
import { FileContext } from './types'
import {
useAppNavigation,
AppNavigationResult,
contextQueryToFileContextProps,
contextR... | owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppDefaults.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/appDefaults/useAppDefaults.ts",
"repo_id": "owncloud",
"token_count": 1080
} | 827 |
export * from './useClipboard'
| owncloud/web/packages/web-pkg/src/composables/clipboard/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/clipboard/index.ts",
"repo_id": "owncloud",
"token_count": 11
} | 828 |
import { Resource } from '@ownclouders/web-client'
import {
extractParentFolderName,
isProjectSpaceResource,
isShareRoot,
isShareSpaceResource
} from '@ownclouders/web-client/src/helpers'
import { useGettext } from 'vue3-gettext'
import { unref } from 'vue'
import { useGetMatchingSpace } from '../spaces'
import... | owncloud/web/packages/web-pkg/src/composables/folderLink/useFolderLink.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/folderLink/useFolderLink.ts",
"repo_id": "owncloud",
"token_count": 1217
} | 829 |
import { defineStore } from 'pinia'
import { computed, ref, unref } from 'vue'
import { AppConfigObject, ApplicationInformation, ApplicationFileExtension } from '../../apps'
export const useAppsStore = defineStore('apps', () => {
const apps = ref<Record<string, ApplicationInformation>>({})
const externalAppConfig ... | owncloud/web/packages/web-pkg/src/composables/piniaStores/apps.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/apps.ts",
"repo_id": "owncloud",
"token_count": 749
} | 830 |
import merge from 'deepmerge'
import { defineStore } from 'pinia'
import { computed, ref, unref } from 'vue'
import { useLocalStorage, usePreferredDark } from '@vueuse/core'
import { z } from 'zod'
import { applyCustomProp } from 'design-system/src/'
const AppBanner = z.object({
title: z.string().optional(),
publi... | owncloud/web/packages/web-pkg/src/composables/piniaStores/theme.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/theme.ts",
"repo_id": "owncloud",
"token_count": 1448
} | 831 |
import { computed, Ref, unref } from 'vue'
import { useRoute } from './useRoute'
export const useRouteMeta = (key: string, defaultValue?: string): Ref<string> => {
const route = useRoute()
return computed(() => (unref(route).meta[key] as string) || defaultValue)
}
| owncloud/web/packages/web-pkg/src/composables/router/useRouteMeta.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/router/useRouteMeta.ts",
"repo_id": "owncloud",
"token_count": 85
} | 832 |
import { Resource, SpaceResource } from '@ownclouders/web-client'
import { useAbility } from '../ability'
import { useCapabilityStore, useUserStore } from '../piniaStores'
import { isProjectSpaceResource, isShareSpaceResource } from '@ownclouders/web-client/src/helpers'
export const useCanShare = () => {
const capab... | owncloud/web/packages/web-pkg/src/composables/shares/useCanShare.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/shares/useCanShare.ts",
"repo_id": "owncloud",
"token_count": 269
} | 833 |
import { computed, ComputedRef, ref, Ref, unref } from 'vue'
import { queryItemAsString } from '../appDefaults'
import { useRouteQueryPersisted } from '../router'
import { FolderViewModeConstants } from './constants'
export function useViewMode(options: ComputedRef<string>): ComputedRef<string> {
if (options) {
... | owncloud/web/packages/web-pkg/src/composables/viewMode/useViewMode.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/viewMode/useViewMode.ts",
"repo_id": "owncloud",
"token_count": 379
} | 834 |
export * from './cache'
export * from './folderLink'
export * from './resource'
export * from './router'
export * from './share'
export * from './ui'
export * from './breadcrumbs'
export * from './clipboardActions'
export * from './contextMenuDropdown'
export * from './datetime'
export * from './download'
export * fro... | owncloud/web/packages/web-pkg/src/helpers/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/index.ts",
"repo_id": "owncloud",
"token_count": 161
} | 835 |
export * from './routeOptions'
export * from './buildUrl'
| owncloud/web/packages/web-pkg/src/helpers/router/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/router/index.ts",
"repo_id": "owncloud",
"token_count": 18
} | 836 |
import {
RouteRecordRaw,
RouteLocationNamedRaw,
RouteMeta,
Router,
RouteLocationPathRaw,
RouteLocationRaw
} from 'vue-router'
import { createLocationSpaces } from './spaces'
import { createLocationShares } from './shares'
import { createLocationCommon } from './common'
import { createLocationPublic } from '... | owncloud/web/packages/web-pkg/src/router/deprecated.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/router/deprecated.ts",
"repo_id": "owncloud",
"token_count": 1589
} | 837 |
export * from './passwordPolicy'
| owncloud/web/packages/web-pkg/src/services/passwordPolicy/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/passwordPolicy/index.ts",
"repo_id": "owncloud",
"token_count": 9
} | 838 |
import { Ref, MaybeRef } from 'vue'
export type StringUnionOrAnyString<T extends string> = T | Omit<string, T>
export type ReadOnlyRef<T> = Readonly<Ref<T>>
export type MaybeReadonlyRef<T> = MaybeRef<T> | ReadOnlyRef<T>
// FIXME: get rid of imports using this re-export
export type { MaybeRef } from 'vue'
| owncloud/web/packages/web-pkg/src/utils/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/utils/types.ts",
"repo_id": "owncloud",
"token_count": 105
} | 839 |
import CreateLinkModal from '../../../src/components/CreateLinkModal.vue'
import { defaultComponentMocks, defaultPlugins, mount } from 'web-test-helpers'
import { mock } from 'vitest-mock-extended'
import { PasswordPolicyService } from '../../../src/services'
import { usePasswordPolicyService } from '../../../src/compo... | owncloud/web/packages/web-pkg/tests/unit/components/CreateLinkModal.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/CreateLinkModal.spec.ts",
"repo_id": "owncloud",
"token_count": 3114
} | 840 |
import ItemFilter from '../../../src/components/ItemFilter.vue'
import { defaultComponentMocks, defaultPlugins, mount } from 'web-test-helpers'
import { queryItemAsString } from '../../../src/composables/appDefaults'
import { OcCheckbox } from 'design-system/src/components'
import { unref } from 'vue'
vi.mock('../../.... | owncloud/web/packages/web-pkg/tests/unit/components/ItemFilter.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/ItemFilter.spec.ts",
"repo_id": "owncloud",
"token_count": 2592
} | 841 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`SpaceQuota component > renders the space storage quota label 1`] = `
"<div class="space-quota">
<p class="oc-mb-s oc-mt-rm">1 B of 10 B used (10% used)</p>
<oc-progress-stub max="100" size="small" variation="primary" indeterminate="false" value... | owncloud/web/packages/web-pkg/tests/unit/components/__snapshots__/SpaceQuota.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/__snapshots__/SpaceQuota.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 132
} | 842 |
import { mock } from 'vitest-mock-extended'
import { unref } from 'vue'
import { defaultComponentMocks, RouteLocation, getComposableWrapper } from 'web-test-helpers'
import { useFileActionsCreateNewShortcut, useModals } from '../../../../../src/composables'
import { Resource, SpaceResource } from '@ownclouders/web-clie... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewShortcut.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewShortcut.spec.ts",
"repo_id": "owncloud",
"token_count": 825
} | 843 |
import { useSpaceActionsEditQuota } from '../../../../../src/composables/actions'
import { useModals } from '../../../../../src/composables/piniaStores'
import { buildSpace } from '@ownclouders/web-client/src/helpers'
import { defaultComponentMocks, getComposableWrapper } from 'web-test-helpers'
import { unref } from '... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsEditQuota.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsEditQuota.spec.ts",
"repo_id": "owncloud",
"token_count": 1170
} | 844 |
import { ref, unref } from 'vue'
import { usePagination } from '../../../../src/composables'
import { getComposableWrapper } from 'web-test-helpers'
describe('usePagination', () => {
describe('computed items', () => {
const items = [1, 2, 3, 4, 5, 6]
it.each([
{ currentPage: 1, itemsPerPage: 100, expe... | owncloud/web/packages/web-pkg/tests/unit/composables/pagination/usePagination.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/pagination/usePagination.spec.ts",
"repo_id": "owncloud",
"token_count": 747
} | 845 |
import Cache from '../../../../src/helpers/cache/cache'
const newCache = <T>(vs: T[], ttl?: number, capacity?: number): Cache<number, T> => {
const cache = new Cache<number, T>({ ttl, capacity })
vs.forEach((v, i) => cache.set(i, v))
return cache
}
describe('Cache', () => {
beforeEach(() => {
vi.useFakeTi... | owncloud/web/packages/web-pkg/tests/unit/helpers/cache/cache.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/cache/cache.spec.ts",
"repo_id": "owncloud",
"token_count": 2792
} | 846 |
import { VisibilityObserver } from '../../../src/observer'
let callback
let mockIntersectionObserver
const reset = () => {
mockIntersectionObserver = {
observe: vi.fn(),
disconnect: vi.fn(),
unobserve: vi.fn()
}
window.IntersectionObserver = vi.fn().mockImplementation((cb) => {
callback = cb
... | owncloud/web/packages/web-pkg/tests/unit/observer/visibility.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/observer/visibility.spec.ts",
"repo_id": "owncloud",
"token_count": 1598
} | 847 |
<template>
<div id="oc-notifications">
<notification-bell :notification-count="notifications.length" />
<oc-drop
id="oc-notifications-drop"
drop-id="notifications-dropdown"
toggle="#oc-notifications-bell"
mode="click"
:options="{ pos: 'bottom-right', delayHide: 0 }"
class="... | owncloud/web/packages/web-runtime/src/components/Topbar/Notifications.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/Topbar/Notifications.vue",
"repo_id": "owncloud",
"token_count": 4593
} | 848 |
import {
ClientService,
createFileRouteOptions,
getIndicators,
ImageDimension,
MessageStore,
PreviewService,
ResourcesStore,
SpacesStore
} from '@ownclouders/web-pkg'
import PQueue from 'p-queue'
import { extractNodeId, extractStorageId } from '@ownclouders/web-client/src/helpers'
import { z } from 'zod... | owncloud/web/packages/web-runtime/src/container/sse.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/container/sse.ts",
"repo_id": "owncloud",
"token_count": 2792
} | 849 |
<template>
<div id="web-content">
<loading-indicator />
<div id="web-content-header">
<div v-if="isIE11" class="oc-background-muted oc-text-center oc-py-m">
<p class="oc-m-rm" v-text="ieDeprecationWarning" />
</div>
<top-bar :applications-list="applicationsList" />
</div>
<di... | owncloud/web/packages/web-runtime/src/layouts/Application.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/layouts/Application.vue",
"repo_id": "owncloud",
"token_count": 3298
} | 850 |
import { SubjectRawRule } from '@casl/ability'
import { AbilityActions, AbilitySubjects } from '@ownclouders/web-client/src/helpers/resource/types'
export const getAbilities = (
permissions: string[]
): SubjectRawRule<AbilityActions, AbilitySubjects, any>[] => {
const abilities: Record<string, SubjectRawRule<Abili... | owncloud/web/packages/web-runtime/src/services/auth/abilities.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/services/auth/abilities.ts",
"repo_id": "owncloud",
"token_count": 983
} | 851 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`OcSidebarNav > renders navItem with toolTip if collapsed 1`] = `
"<li class="oc-sidebar-nav-item oc-pb-xs oc-px-s" id="123">
<router-link-stub to="/files/list/all" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button... | owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/__snapshots__/SidebarNavItem.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/__snapshots__/SidebarNavItem.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 381
} | 852 |
import { mock } from 'vitest-mock-extended'
import { createApp, defineComponent, App } from 'vue'
import { useAppsStore, useConfigStore } from '@ownclouders/web-pkg'
import {
initializeApplications,
announceApplicationsReady,
announceCustomScripts,
announceCustomStyles,
announceConfiguration
} from '../../../... | owncloud/web/packages/web-runtime/tests/unit/container/bootstrap.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/container/bootstrap.spec.ts",
"repo_id": "owncloud",
"token_count": 2442
} | 853 |
import { mock } from 'vitest-mock-extended'
import { SpaceResource } from '../../../web-client/src'
import { useGetMatchingSpace } from '../../../web-pkg'
export const useGetMatchingSpaceMock = (
options: Partial<ReturnType<typeof useGetMatchingSpace>> = {}
): ReturnType<typeof useGetMatchingSpace> => {
return {
... | owncloud/web/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts",
"repo_id": "owncloud",
"token_count": 215
} | 854 |
/**
*
* @param {string} enableOrDisable
* @param {string} selector
* @param {string} strategy which selection strategy to use 'css selector' or 'xpath'
*/
exports.command = function (enableOrDisable, selector, strategy = 'css selector') {
this.element(strategy, selector, (response) => {
this.elementIdSelecte... | owncloud/web/tests/acceptance/customCommands/toggleCheckbox.js/0 | {
"file_path": "owncloud/web/tests/acceptance/customCommands/toggleCheckbox.js",
"repo_id": "owncloud",
"token_count": 378
} | 855 |
Feature: move files
As a user
I want to move 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 created folder "simple-folder" in the server
And user "Alice" has uploade... | owncloud/web/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature",
"repo_id": "owncloud",
"token_count": 788
} | 856 |
@public_link_share-feature-required @disablePreviews
Feature: Public link share indicator
As a user
I want to check share indicator
So that I can know with resources are shared
Background:
Given user "Alice" has been created with default attributes and without skeleton files in the server
And user "Ali... | owncloud/web/tests/acceptance/features/webUISharingPublicManagement/publicLinkIndicator.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingPublicManagement/publicLinkIndicator.feature",
"repo_id": "owncloud",
"token_count": 1863
} | 857 |
const httpHelper = require('../helpers/httpHelper')
/**
* Run occ command using the testing API
*
* @param {Array} args
*/
exports.runOcc = async function (args) {
const params = new URLSearchParams()
params.append('command', args.join(' '))
const apiURL = 'apps/testing/api/v1/occ'
const res = await httpHe... | owncloud/web/tests/acceptance/helpers/occHelper.js/0 | {
"file_path": "owncloud/web/tests/acceptance/helpers/occHelper.js",
"repo_id": "owncloud",
"token_count": 406
} | 858 |
const util = require('util')
const assert = require('assert')
const xpathHelper = require('../../helpers/xpath')
const { client } = require('nightwatch-api')
const appSideBar = client.page.FilesPageElement.appSideBar()
const contextMenu = client.page.FilesPageElement.contextMenu()
const filesRow = client.page.FilesPage... | owncloud/web/tests/acceptance/pageObjects/FilesPageElement/filesList.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/filesList.js",
"repo_id": "owncloud",
"token_count": 11636
} | 859 |
const { join } = require('../helpers/path')
const util = require('util')
module.exports = {
url: function (token = '') {
return join(this.api.launchUrl, '/s', token)
},
commands: {
/**
* like build-in navigate() but also waits till for the progressbar to appear and disappear
* @returns {*}
... | owncloud/web/tests/acceptance/pageObjects/publicLinkFilesPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/publicLinkFilesPage.js",
"repo_id": "owncloud",
"token_count": 775
} | 860 |
const { client } = require('nightwatch-api')
const { When } = require('@cucumber/cucumber')
When('the user closes the message', function () {
return client.page.webPage().closeMessage()
})
| owncloud/web/tests/acceptance/stepDefinitions/messagesContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/messagesContext.js",
"repo_id": "owncloud",
"token_count": 58
} | 861 |
{
"server": "https://ocis:9200",
"theme": "https://ocis:9200/themes/owncloud/theme.json",
"openIdConnect": {
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
},
"options": {
"topCenterNotifications": true,
"disablePreviews": true,
"displayResourcesLazy": fal... | owncloud/web/tests/drone/web-keycloak.json/0 | {
"file_path": "owncloud/web/tests/drone/web-keycloak.json",
"repo_id": "owncloud",
"token_count": 276
} | 862 |
Feature: Search
As a user
I want to do full text search
So that I can find the files with the content I am looking for
Scenario: search for content of file
Given "Admin" creates following users using API
| id |
| Alice |
| Brian |
And "Admin" assigns following roles to the users us... | owncloud/web/tests/e2e/cucumber/features/search/fullTextSearch.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/search/fullTextSearch.feature",
"repo_id": "owncloud",
"token_count": 1875
} | 863 |
Feature: check files pagination in personal space
As a user
I want to navigate a large number of files using pagination
So that I do not have to scroll deep down
Scenario: pagination
Given "Admin" creates following user using API
| id |
| Alice |
And "Alice" logs in
And "Alice" creat... | owncloud/web/tests/e2e/cucumber/features/smoke/personalSpacePagination.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/personalSpacePagination.feature",
"repo_id": "owncloud",
"token_count": 370
} | 864 |
const { program } = require('commander')
const getRepoInfo = require('git-repo-info')
const pkg = require('../../../../package.json')
const reporter = require('cucumber-html-reporter')
const os = require('os')
program
.option('--backend-version <semver>', 'version of used backend')
.option('--environment <type>', ... | owncloud/web/tests/e2e/cucumber/report/index.js/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/report/index.js",
"repo_id": "owncloud",
"token_count": 443
} | 865 |
export * from './user'
export * from './utils'
| owncloud/web/tests/e2e/support/api/keycloak/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/keycloak/index.ts",
"repo_id": "owncloud",
"token_count": 16
} | 866 |
import { Space } from '../types'
import { createdSpaceStore } from '../store'
export class SpacesEnvironment {
getSpace({ key }: { key: string }): Space {
if (!createdSpaceStore.has(key)) {
throw new Error(`space with key '${key}' not found`)
}
return createdSpaceStore.get(key)
}
createSpace(... | owncloud/web/tests/e2e/support/environment/space.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/environment/space.ts",
"repo_id": "owncloud",
"token_count": 194
} | 867 |
import { Page } from '@playwright/test'
import util from 'util'
import { locatorUtils } from '../../../utils'
const spaceTrSelector = '.spaces-table tbody > tr'
const actionConfirmButton = '.oc-modal-body-actions-confirm'
const contextMenuSelector = `[data-item-id="%s"] .spaces-table-btn-action-dropdown`
const spaceCh... | owncloud/web/tests/e2e/support/objects/app-admin-settings/spaces/actions.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/spaces/actions.ts",
"repo_id": "owncloud",
"token_count": 2851
} | 868 |
import { errors, Page } from '@playwright/test'
import util from 'util'
const resourceNameSelector = '#files-space-table [data-test-resource-name="%s"]'
/**
* one of the few places where timeout should be used, as we also use this to detect the absence of an element
* it is not possible to differentiate between `ele... | owncloud/web/tests/e2e/support/objects/app-files/resource/utils.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/resource/utils.ts",
"repo_id": "owncloud",
"token_count": 355
} | 869 |
import { Page } from '@playwright/test'
import util from 'util'
const appSwitcherButton = '#_appSwitcherButton'
const appSelector = `//ul[contains(@class, "applications-list")]//*[@data-test-id="%s"]`
const notificationsBell = `#oc-notifications-bell`
const notificationsDrop = `#oc-notifications-drop`
const notificati... | owncloud/web/tests/e2e/support/objects/runtime/application.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/runtime/application.ts",
"repo_id": "owncloud",
"token_count": 811
} | 870 |
import { readFileSync } from 'fs'
import { Page } from '@playwright/test'
interface File {
name: string
path: string
}
interface FileBuffer {
name: string
bufferString: string
}
export const dragDropFiles = async (page: Page, resources: File[], targetSelector: string) => {
const files = resources.map((file... | owncloud/web/tests/e2e/support/utils/dragDrop.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/utils/dragDrop.ts",
"repo_id": "owncloud",
"token_count": 346
} | 871 |
<?php
//验证码
function vcode($width=120,$height=40,$fontSize=30,$countElement=5,$countPixel=100,$countLine=4){
header('Content-type:image/jpeg');
$element=array('a','b','c','d','e','f','g','h','i','j','k','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9');
$string='';
fo... | zhuifengshaonianhanlu/pikachu/inc/function.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/inc/function.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 3733
} | 872 |
<?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 f... | zhuifengshaonianhanlu/pikachu/pkxss/xcookie/pkxss_cookie_result.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/xcookie/pkxss_cookie_result.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 834
} | 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 = "csrf_get.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','active open','','active','','',... | zhuifengshaonianhanlu/pikachu/vul/csrf/csrfget/csrf_get.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/csrf/csrfget/csrf_get.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1466
} | 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 = "op1_login.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','... | zhuifengshaonianhanlu/pikachu/vul/overpermission/op1/op1_mem.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/overpermission/op1/op1_mem.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1785
} | 875 |
<?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_insert.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_iu/sqli_login.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_iu/sqli_login.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2183
} | 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 = "unserilization.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''... | zhuifengshaonianhanlu/pikachu/vul/unserilization/unserilization.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/unserilization/unserilization.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1987
} | 877 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$PIKA_ROOT_DIR = "../../../";
include_once $PIKA_ROOT_DIR.'inc/config.inc.php';
include_once $PIKA_ROOT_DIR.'inc/mysql.inc.php';
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "post_login.... | zhuifengshaonianhanlu/pikachu/vul/xss/xsspost/post_login.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/xsspost/post_login.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2581
} | 878 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>8th Wall Web: Animations</title>
<link rel="stylesheet" type="text/css" href="index.css">
<!-- We've included a slightly modified version of A-Frame, which fixes some polish concerns -->
<script src="//cdn.8thwall.com/web/aframe/8frame-1... | 8thwall/web/examples/aframe/animation-mixer/index.html/0 | {
"file_path": "8thwall/web/examples/aframe/animation-mixer/index.html",
"repo_id": "8thwall",
"token_count": 1569
} | 0 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>8th Wall Web: Capture a photo</title>
<!-- We've included a slightly modified version of A-Frame, which fixes some polish concerns -->
<script src="//cdn.8thwall.com/web/aframe/8frame-1.3.0.min.js"></script>
<script src="photo-mode.js"><... | 8thwall/web/examples/aframe/capturephoto/index.html/0 | {
"file_path": "8thwall/web/examples/aframe/capturephoto/index.html",
"repo_id": "8thwall",
"token_count": 1030
} | 1 |
{
"name": "reactapp",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"html-loader": "^4.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom":... | 8thwall/web/examples/aframe/reactapp/package.json/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/package.json",
"repo_id": "8thwall",
"token_count": 426
} | 2 |
import React from 'react'
import {AFrameScene} from '../lib/aframe-components'
import html from './cube.html'
const Scene = () => (
<AFrameScene sceneHtml={html} />
)
export {Scene}
| 8thwall/web/examples/aframe/reactapp/src/views/scene.jsx/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/src/views/scene.jsx",
"repo_id": "8thwall",
"token_count": 65
} | 3 |
# 8th Wall Web Examples - Camera Pipeline - Camera Feed
This example shows how to create an 8th Wall Web that draws the camera feed over the entire
screen.
Camera Feed
:----------:

[Try Demo (mobile)](https://apps.8thwall.com/8thWall/camerapipeline_c... | 8thwall/web/examples/camerapipeline/camerafeed/README.md/0 | {
"file_path": "8thwall/web/examples/camerapipeline/camerafeed/README.md",
"repo_id": "8thwall",
"token_count": 140
} | 4 |
/*
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/detector.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/detector.js",
"repo_id": "8thwall",
"token_count": 5650
} | 5 |
html, body {
-webkit-tap-highlight-color: rgba(0,0,0,0);
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
| 8thwall/web/examples/threejs/8i-hologram/index.css/0 | {
"file_path": "8thwall/web/examples/threejs/8i-hologram/index.css",
"repo_id": "8thwall",
"token_count": 60
} | 6 |
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: -1px 0px 0px 0px !important;
padding: 0;
}
| 8thwall/web/examples/threejs/placeground/index.css/0 | {
"file_path": "8thwall/web/examples/threejs/placeground/index.css",
"repo_id": "8thwall",
"token_count": 45
} | 7 |
/*jshint esversion: 6, asi: true, laxbreak: true*/
var FaceController = pc.createScript('face-controller');
FaceController.attributes.add('material', {
type: 'asset',
assetType: 'material'
});
FaceController.prototype.initialize = function() {
const pcCamera = XRExtras.PlayCanvas.findOneCamera(this.entity)... | 8thwall/web/gettingstarted/playcanvas/scripts/facecontroller.js/0 | {
"file_path": "8thwall/web/gettingstarted/playcanvas/scripts/facecontroller.js",
"repo_id": "8thwall",
"token_count": 1075
} | 8 |
import type {ComponentDefinition} from 'aframe'
declare const THREE: any
// Recenter the scene when the screen is tapped.
const tapRecenterComponent: ComponentDefinition = {
init() {
const scene = this.el.sceneEl
scene.addEventListener('click', () => { scene.emit('recenter', {}) })
},
}
type FingerMoveEv... | 8thwall/web/xrextras/src/aframe/components/gestures-components.ts/0 | {
"file_path": "8thwall/web/xrextras/src/aframe/components/gestures-components.ts",
"repo_id": "8thwall",
"token_count": 4426
} | 9 |
declare const XR8: any
function create() {
let canvas_ = null
const vsize_ = {
w: 0,
h: 0,
}
let orientation_ = 0
const originalBodyStyleSubset_ = {
backgroundColor: 'initial',
overflowY: 'initial',
}
const originalHtmlStyleSubset_ = {
overflow: 'initial',
}
const canvasStyle_ = ... | 8thwall/web/xrextras/src/fullwindowcanvasmodule/full-window-canvas-module.ts/0 | {
"file_path": "8thwall/web/xrextras/src/fullwindowcanvasmodule/full-window-canvas-module.ts",
"repo_id": "8thwall",
"token_count": 2297
} | 10 |
/* globals XR8 */
// This pauses XR8 when the tab is hidden and calls resumes XR8 once the tab is visible again.
// Useful for when you want your camera feed and MediaRecorder audio to continue even if your
// desktop browser tab isn't focused. It has nearly identical functionality to PauseOnBlur for
// mobile.
// ht... | 8thwall/web/xrextras/src/pauseonhiddenmodule/pauseonhidden.js/0 | {
"file_path": "8thwall/web/xrextras/src/pauseonhiddenmodule/pauseonhidden.js",
"repo_id": "8thwall",
"token_count": 396
} | 11 |
import {AFrameFactory} from './aframe/aframe'
import {AlmostThereFactory} from './almosttheremodule/almost-there-module'
import {DebugWebViewsFactory} from './debugwebviews/debug-web-views'
import {FullWindowCanvasFactory} from './fullwindowcanvasmodule/full-window-canvas-module'
import {LoadingFactory} from './loading... | 8thwall/web/xrextras/src/xrextras.js/0 | {
"file_path": "8thwall/web/xrextras/src/xrextras.js",
"repo_id": "8thwall",
"token_count": 809
} | 12 |
## HTML 表单
HTML 表单主要用于收集用户的输入信息。
它包含各种表单元素。
表单元素是允许用户在表单中输入内容的一些标签元素,比如:输入框(input)、文本域(textarea)、下拉列表(select)、单选框(radio-buttons)、复选框(checkbox) 等等。
比如我们经常用到的注册/登录的界面就是一个表单。
一个常见的表单,通常由左侧`提示文本`和右侧`表单元素`组成。

## 1、表单域
表单域,顾名思义,就是包含表单元素的一个区域。我们用 `form` 标签来表示表单域。
语法如下:
```html
<form action="htt... | Daotin/Web/01-HTML/01-HTML基础/04-表单.md/0 | {
"file_path": "Daotin/Web/01-HTML/01-HTML基础/04-表单.md",
"repo_id": "Daotin",
"token_count": 10841
} | 13 |
## 一、动画
### 1、创建动画
好的前端工程师,会更注重用户的体验和交互。那么动画就是将我们的静态页面,变成具有灵动性,为我们的界面添加个性的一种方式。
一个动画至少需要两个属性:
`animation-name` :动画的名字(创建动画时起的名字,如下为 moveTest)
`animation-duration` :动画的耗时
```css
animation-name: moveTest;
animation-duration: 2s;
```
如需在 CSS3 中创建动画,需要学习 `@keyframes` 规则。`@keyframes` 规则用于创建动画。在 `@keyframes` 中规定某项 CSS... | Daotin/Web/02-CSS/02-CSS3/06-animation动画,Web字体.md/0 | {
"file_path": "Daotin/Web/02-CSS/02-CSS3/06-animation动画,Web字体.md",
"repo_id": "Daotin",
"token_count": 8290
} | 14 |
## 1、对象创建方式
### 1.1、调用系统函数创建对象
**(创建对象的最简单方式就是创建一个 Object 的实例,然后再为它添加属性和方法。)**
```javascript
var obj = new Object();
obj.name = "Daotin";
obj.age = 18;
obj.eat = function () {
console.log("我很能吃");
);
```
缺点:使用同一个接口创建很多对象,会产生大量的重复代码。
### 1.2、自定义构造函数创建对象
**工厂模式创建对象**:考虑到在 ECMAScript 中无法创建类,开发人员就发明了一种函数,用函数来封装... | Daotin/Web/03-JavaScript/01-JavaScript基础知识/08-对象.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/08-对象.md",
"repo_id": "Daotin",
"token_count": 11594
} | 15 |
## 一、client 系列
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#dv {
width: 300px;
height: 200px;
border: 20px solid purple;
margin-top: 50px;
margin-left: 100px;
}
#dv2 {... | Daotin/Web/03-JavaScript/03-BOM/04-client.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/03-BOM/04-client.md",
"repo_id": "Daotin",
"token_count": 8883
} | 16 |
这个案例按照面向对象的思想,我们把它分成四个模块。
第一,地图模块;
第二,食物模块,也就是上面小方块的模块;
第三,小蛇模块;
第四,整个游戏也可以封装成一个模块,这个模块是将上面三个模块再次封装起来。
### 1、地图模块
地图模块最简单了,就是一块 div,设置宽高,背景就可以了。
注意:由于食物和小蛇都要在背景之上移动,所以食物和小蛇是脱标的,所以地图需要设置 position: relative;
```html
<style>
.map {
width: 800px;
height: 600px;
background-color: #ccc... | Daotin/Web/03-JavaScript/04-JavaScript高级知识/02-原型案例:贪吃蛇.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/02-原型案例:贪吃蛇.md",
"repo_id": "Daotin",
"token_count": 6106
} | 17 |
## 一、jQuery中的一些方法
### 1、使用css操作元素样式
#### 1.1、常规写法
```js
$("#dv").css("width", "200px");
$("#dv").css("backgroundColor", "red");
$("#dv").css("width", function(index,item){
return index+1;
});
```
> $("#dv").css("width", 200); px加不加都可以
>
> $("#dv").css("background-color", "red"); 两种写法都可以
#### 1.2、链式写法
```js
... | Daotin/Web/04-jQuery/03-元素操作,链式编程,动画方法.md/0 | {
"file_path": "Daotin/Web/04-jQuery/03-元素操作,链式编程,动画方法.md",
"repo_id": "Daotin",
"token_count": 5053
} | 18 |
.jd {
width: 100%;
/* height: 1000px; */
/* 最大宽度 */
max-width: 640px;
/* 最小宽度 */
min-width: 320px;
margin: 0 auto;
background-color: #eee;
}
/* 搜索栏开始 */
.search {
width: 100%;
max-width: 640px;
height: 40px;
background-color: rgba(233, 35, 34, 0);
position: fixed;
... | Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/css/index.css/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/css/index.css",
"repo_id": "Daotin",
"token_count": 2015
} | 19 |
// Base Class Definition
// -------------------------
.#{$fa-css-prefix} {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rend... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_core.scss/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_core.scss",
"repo_id": "Daotin",
"token_count": 148
} | 20 |
/**
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.3';
/** Preset options */
var options = window.html5 || {};
/** Used to skip problem elements */
var reSkip = /^<|^(?:button|map... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/html5shiv/html5shiv-printshiv.js/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/html5shiv/html5shiv-printshiv.js",
"repo_id": "Daotin",
"token_count": 5916
} | 21 |
## Browserify模块化使用教程
区别Node与Browserify
Node.js运行时动态加载模块(同步)
Browserify是在转译(编译)时就会加载打包(合并)require的模块
### 操作步骤
1、创建项目结构
```
|-js
|-dist //打包生成文件的目录
|-src //源码所在的目录
|-module1.js
|-module2.js
|-module3.js
|-app.js //应用主源文件
|-index.html
|-package.json
{
"name": "browserify-test",
"versio... | Daotin/Web/09-模块化规范/03-前端CommonJS-Browserify模块化.md/0 | {
"file_path": "Daotin/Web/09-模块化规范/03-前端CommonJS-Browserify模块化.md",
"repo_id": "Daotin",
"token_count": 829
} | 22 |
## 一、品牌管理案例
如下图,
1、实现输入id和name后,点击add按钮,添加到table中;
2、点击数据的del,可以删除这条数据。

代码:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="./lib/vue-2.4.0.js"></script>
<style>
* {
padding: 0;
margi... | Daotin/Web/12-Vue/02-过滤器,按键修饰符,自定义指令.md/0 | {
"file_path": "Daotin/Web/12-Vue/02-过滤器,按键修饰符,自定义指令.md",
"repo_id": "Daotin",
"token_count": 12443
} | 23 |
## 一、模板式表单
模板式表单常用于form表单,用于注册登录等表单提交。
模板式表单需要引入模板式表单模块,这个模块在项目创建时会自动引入。
```js
imports: [
FormsModule,
],
```
创建一个login组件进行示例:
```html
<form>
<div>用户名:<input type="text"></div>
<div>密码:<input type="text"></div>
<input type="submit" value="登录">
</form>
```
> 1、只要创建了form表单,就会自动被FormsModule模块接管。
>
... | Daotin/Web/14-Angular/08-模板式表单,响应式表单2.md/0 | {
"file_path": "Daotin/Web/14-Angular/08-模板式表单,响应式表单2.md",
"repo_id": "Daotin",
"token_count": 3570
} | 24 |
/**
* po是持久层
*
* @author 何明胜
*
* 2017年10月18日
*/
package pers.husen.web.bean.po; | Humsen/web/web-core/src/pers/husen/web/bean/po/package-info.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/bean/po/package-info.java",
"repo_id": "Humsen",
"token_count": 54
} | 25 |
package pers.husen.web.common.handler;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache... | Humsen/web/web-core/src/pers/husen/web/common/handler/FileUploadHandler.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/common/handler/FileUploadHandler.java",
"repo_id": "Humsen",
"token_count": 3195
} | 26 |
package pers.husen.web.config.filter;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.S... | Humsen/web/web-core/src/pers/husen/web/config/filter/ExceptionFilter.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/config/filter/ExceptionFilter.java",
"repo_id": "Humsen",
"token_count": 346
} | 27 |
package pers.husen.web.dao.impl;
import java.util.ArrayList;
import java.util.Date;
import pers.husen.web.bean.vo.FileDownloadVo;
import pers.husen.web.dao.FileDownloadDao;
import pers.husen.web.dbutil.DbQueryUtils;
import pers.husen.web.dbutil.DbManipulationUtils;
/**
* @author 何明胜
*
* 2017年9月29日
*/
pub... | Humsen/web/web-core/src/pers/husen/web/dao/impl/FileDownloadDaoImpl.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dao/impl/FileDownloadDaoImpl.java",
"repo_id": "Humsen",
"token_count": 936
} | 28 |
package pers.husen.web.dbutil.mappingdb;
/**
* 图片上传数据库
*
* @author 何明胜
*
* 2017年10月20日
*/
public class ImageUploadMapping {
/**
* 数据库名称
*/
public static String DB_NAME = "image_upload";
} | Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/ImageUploadMapping.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/mappingdb/ImageUploadMapping.java",
"repo_id": "Humsen",
"token_count": 110
} | 29 |
package pers.husen.web.servlet;
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 pers.hu... | Humsen/web/web-core/src/pers/husen/web/servlet/ArticleDeleteSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/ArticleDeleteSvt.java",
"repo_id": "Humsen",
"token_count": 711
} | 30 |
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/CodeModuleSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/module/CodeModuleSvt.java",
"repo_id": "Humsen",
"token_count": 425
} | 31 |
@charset "UTF-8";
.download-div {
padding: 0em 1em !important;
}
.text-align-center {
text-align: center !important;
}
.h3-letter-space {
letter-spacing: 0.05em !important;
padding: 15px 0 5px 0 !important;
height: 45px;
}
#list_file div.col-md-6 {
padding-right: 5px;
padding-left: 5px;
} | Humsen/web/web-mobile/WebContent/css/download/download.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/download/download.css",
"repo_id": "Humsen",
"token_count": 130
} | 32 |
@charset "UTF-8";
.modify-userinfo-form {
margin-top: 50px;
}
.up-img-hidden {
padding-top: 30px;
display: none !important;
}
.btn-chang-head-img {
margin-top: 30px;
}
.head-img-size {
width: 80px;
height: 80px;
} | Humsen/web/web-mobile/WebContent/css/personal_center/modify-userinfo.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/personal_center/modify-userinfo.css",
"repo_id": "Humsen",
"token_count": 107
} | 33 |
/**
* @desc 首页
*
* @author 何明胜
*
* @created 2018年1月12日 下午3:24:11
*/
/** 加载插件 */
$.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... | Humsen/web/web-mobile/WebContent/js/index/index.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/index/index.js",
"repo_id": "Humsen",
"token_count": 457
} | 34 |
/**
* 个人中心的js
*
* @author 何明胜
*
* 2017年10月17日
*/
$(function() {
/** 顶部导航栏 **/
$.ajax({
url : '/module/navigation/topbar.html', // 这里是静态页的地址
async : false,
type : 'GET', // 静态页用get方法,否则服务器会抛出405错误
success : function(data) {
$(document.body).prepend(data);
}
});
/** 登录控制 **/
$.ajax({
url : '... | Humsen/web/web-mobile/WebContent/js/personal_center/personal-center.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/personal_center/personal-center.js",
"repo_id": "Humsen",
"token_count": 4576
} | 35 |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
... | Humsen/web/web-mobile/WebContent/plugins/bootstrap/css/bootstrap.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/bootstrap/css/bootstrap.css",
"repo_id": "Humsen",
"token_count": 61644
} | 36 |
List of CodeMirror contributors. Updated before every release.
4r2r
Aaron Brooks
Abdelouahab
Abe Fettig
Adam Ahmed
Adam King
adanlobato
Adán Lobato
Adrian Aichner
aeroson
Ahmad Amireh
Ahmad M. Zawawi
ahoward
Akeksandr Motsjonov
Alberto González Palomo
Alberto Pose
Albert Xing
Alexander Pavlov
Alexander Schepanovski
Al... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/AUTHORS/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/AUTHORS",
"repo_id": "Humsen",
"token_count": 2231
} | 37 |
// 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("../fold/xml-fold"));
else if (typeof define == "... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/matchtags.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/edit/matchtags.js",
"repo_id": "Humsen",
"token_count": 945
} | 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("../../mode/sql/sql"));
else if (typeof define ==... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/sql-hint.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/hint/sql-hint.js",
"repo_id": "Humsen",
"token_count": 2929
} | 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("./runmode"));
else if (typeof define == "functio... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/runmode/colorize.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/runmode/colorize.js",
"repo_id": "Humsen",
"token_count": 498
} | 40 |
.CodeMirror-Tern-completion {
padding-left: 22px;
position: relative;
}
.CodeMirror-Tern-completion:before {
position: absolute;
left: 2px;
bottom: 2px;
border-radius: 50%;
font-size: 12px;
font-weight: bold;
height: 15px;
width: 15px;
line-height: 16px;
text-align: center;
color: white;
-mo... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/tern/tern.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/tern/tern.css",
"repo_id": "Humsen",
"token_count": 783
} | 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/commonlisp/commonlisp.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/commonlisp/commonlisp.js",
"repo_id": "Humsen",
"token_count": 1873
} | 42 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/*jshint unused:true, eqnull:true, curly:true, bitwise:true */
/*jshint undef:true, latedef:true, trailing:true */
/*global CodeMirror:true */
// erlang mode.
// tokenizer -> token types -> C... | Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/erlang/erlang.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/erlang/erlang.js",
"repo_id": "Humsen",
"token_count": 8456
} | 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/idl/idl.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/mode/idl/idl.js",
"repo_id": "Humsen",
"token_count": 6661
} | 44 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.