text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
export { default as AppWrapper } from './AppWrapper.vue' export * from './AppWrapperRoute' export * from './types'
owncloud/web/packages/web-pkg/src/components/AppTemplates/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/AppTemplates/index.ts", "repo_id": "owncloud", "token_count": 38 }
823
<template> <span class="oc-resource-size" v-text="formattedSize" /> </template> <script lang="ts"> import { defineComponent } from 'vue' import { filesize } from 'filesize' /** * Displays a formatted resource size */ export default defineComponent({ name: 'ResourceSize', props: { /** * Number of byte...
owncloud/web/packages/web-pkg/src/components/FilesList/ResourceSize.vue/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/FilesList/ResourceSize.vue", "repo_id": "owncloud", "token_count": 366 }
824
<template> <div class="no-content-message oc-flex oc-flex-column oc-flex-center oc-flex-middle oc-text-center" > <oc-icon :name="icon" type="div" size="xxlarge" :fill-type="iconFillType" class="oc-mb-m" /> <div class="oc-text-muted oc-text-xlarge"> <slot name="message" /> </div> <div class...
owncloud/web/packages/web-pkg/src/components/NoContentMessage.vue/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/NoContentMessage.vue", "repo_id": "owncloud", "token_count": 344 }
825
<template> <div class="space_info oc-p-s"> <div class="space_info__body oc-text-overflow oc-flex oc-flex-middle"> <div class="oc-mr-s"> <oc-icon name="layout-grid" :size="resource.description ? 'large' : 'medium'" class="oc-display-block" /> </div> <...
owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/SpaceInfo.vue/0
{ "file_path": "owncloud/web/packages/web-pkg/src/components/SideBar/Spaces/SpaceInfo.vue", "repo_id": "owncloud", "token_count": 573 }
826
import { isLocationCommonActive, isLocationPublicActive, isLocationSpacesActive } from '../../../router' import { computed, unref } from 'vue' import { useGettext } from 'vue3-gettext' import { FileAction, FileActionOptions } from '../types' import { isProjectSpaceResource } from '@ownclouders/web-client/src/hel...
owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCopy.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsCopy.ts", "repo_id": "owncloud", "token_count": 1278 }
827
import { isLocationCommonActive, isLocationPublicActive, isLocationSharesActive, isLocationSpacesActive } from '../../../router' import { useIsFilesAppActive } from '../helpers' import { useRouter } from '../../router' import { FileAction, FileActionOptions } from '../types' import { useIsSearchActive } from '....
owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsOpenShortcut.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/files/useFileActionsOpenShortcut.ts", "repo_id": "owncloud", "token_count": 1237 }
828
import { computed, unref } from 'vue' import { useGettext } from 'vue3-gettext' import { SpaceResource } from '@ownclouders/web-client/src' import { useClientService } from '../../clientService' import { useRoute } from '../../router' import { eventBus } from '../../../services' import { useAbility } from '../../abilit...
owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDelete.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/actions/spaces/useSpaceActionsDelete.ts", "repo_id": "owncloud", "token_count": 1642 }
829
import { MaybeRef } from '../../utils' import { LocationQuery } from '../router' import { SpaceResource } from '@ownclouders/web-client/src/helpers' import { RouteParams } from 'vue-router' export interface FileContext { path: MaybeRef<string> driveAliasAndItem: MaybeRef<string> space: MaybeRef<SpaceResource> ...
owncloud/web/packages/web-pkg/src/composables/appDefaults/types.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/appDefaults/types.ts", "repo_id": "owncloud", "token_count": 164 }
830
export * from './useClientService'
owncloud/web/packages/web-pkg/src/composables/clientService/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/clientService/index.ts", "repo_id": "owncloud", "token_count": 10 }
831
import { unref, Ref } from 'vue' import { useGetMatchingSpace } from '../spaces' import { createFileRouteOptions } from '../../helpers/router' import { createLocationSpaces, createLocationShares } from '../../router' import { CreateTargetRouteOptions } from '../../helpers/folderLink/types' import { Resource, SpaceReso...
owncloud/web/packages/web-pkg/src/composables/filesList/useResourceRouteResolver.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/filesList/useResourceRouteResolver.ts", "repo_id": "owncloud", "token_count": 661 }
832
export * from './usePasswordPolicyService'
owncloud/web/packages/web-pkg/src/composables/passwordPolicyService/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/passwordPolicyService/index.ts", "repo_id": "owncloud", "token_count": 11 }
833
import { Resource } from '@ownclouders/web-client' import { ClientService } from '../../../services' import { CollaboratorShare, LinkShare, SpaceResource } from '@ownclouders/web-client/src/helpers' import { DriveItemCreateLink, DriveItemInvite } from '@ownclouders/web-client/src/generated' export interface AddShareOp...
owncloud/web/packages/web-pkg/src/composables/piniaStores/shares/types.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/shares/types.ts", "repo_id": "owncloud", "token_count": 344 }
834
import { useRouter } from './useRouter' import { Resource, SpaceResource } from '@ownclouders/web-client/src/helpers' import { createFileRouteOptions } from '../../helpers/router' import { Router } from 'vue-router' import { ConfigStore, useConfigStore } from '../piniaStores' export interface FileRouteReplaceOptions {...
owncloud/web/packages/web-pkg/src/composables/router/useFileRouteReplace.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/router/useFileRouteReplace.ts", "repo_id": "owncloud", "token_count": 364 }
835
import { inject } from 'vue' export const useService = <T>(name: string): T => inject(name)
owncloud/web/packages/web-pkg/src/composables/service/useService.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/service/useService.ts", "repo_id": "owncloud", "token_count": 30 }
836
export * from './constants' export * from './useTileSize' export * from './useViewMode'
owncloud/web/packages/web-pkg/src/composables/viewMode/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/composables/viewMode/index.ts", "repo_id": "owncloud", "token_count": 29 }
837
import { Resource } from '@ownclouders/web-client' export interface CreateTargetRouteOptions { path: string fileId?: string | number resource: Resource }
owncloud/web/packages/web-pkg/src/helpers/folderLink/types.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/helpers/folderLink/types.ts", "repo_id": "owncloud", "token_count": 45 }
838
import { Resource } from '@ownclouders/web-client' export const isSameResource = (r1: Resource, r2: Resource): boolean => { if (!r1 || !r2) { return false } return r1.id === r2.id }
owncloud/web/packages/web-pkg/src/helpers/resource/sameResource.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/helpers/resource/sameResource.ts", "repo_id": "owncloud", "token_count": 73 }
839
enum states { enter, exit } interface CbackOptions { element: Element callCount: number unobserve: () => void } type cback = (options: CbackOptions) => void type unobserve = (element: Element) => void interface Cbacks { onEnter?: cback onExit?: cback } class Target { private state: states private...
owncloud/web/packages/web-pkg/src/observer/visibility.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/observer/visibility.ts", "repo_id": "owncloud", "token_count": 1365 }
840
export * from './archiver' export * from './cache' export * from './client' export * from './eventBus' export * from './loadingService' export * from './preview' export * from './passwordPolicy' export * from './uppy'
owncloud/web/packages/web-pkg/src/services/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/services/index.ts", "repo_id": "owncloud", "token_count": 70 }
841
export * from './dirname' export * from './encodePath' export * from './objectKeys' export * from './types'
owncloud/web/packages/web-pkg/src/utils/index.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/src/utils/index.ts", "repo_id": "owncloud", "token_count": 36 }
842
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`ContextActionMenu component > renders the menu with actions 1`] = ` "<div id="oc-files-context-menu"> <oc-list-stub raw="false" id="oc-files-context-actions-action 1" class="oc-files-context-actions oc-pb-s oc-files-context-actions-border"></oc-l...
owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/__snapshots__/ContextActionMenu.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/ContextActions/__snapshots__/ContextActionMenu.spec.ts.snap", "repo_id": "owncloud", "token_count": 173 }
843
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`ResourceTiles component > renders a footer slot 1`] = ` "<div data-v-67d39700="" id="tiles-view" class="oc-px-m oc-pt-l"> <!--v-if--> <oc-list data-v-67d39700="" class="oc-tiles oc-flex"> </oc-list> <!--v-if--> <div data-v-67d39700="" class...
owncloud/web/packages/web-pkg/tests/unit/components/FilesList/__snapshots__/ResourceTiles.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/__snapshots__/ResourceTiles.spec.ts.snap", "repo_id": "owncloud", "token_count": 669 }
844
import { mock } from 'vitest-mock-extended' import { unref } from 'vue' import { useFileActionsCreateNewFile } from '../../../../../src/composables/actions' import { useModals } from '../../../../../src/composables/piniaStores' import { SpaceResource } from '@ownclouders/web-client/src' import { Resource } from '@owncl...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewFile.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsCreateNewFile.spec.ts", "repo_id": "owncloud", "token_count": 1605 }
845
import { useSpaceActionsDuplicate } from '../../../../../src/composables/actions/spaces' import { AbilityRule, SpaceResource } from '@ownclouders/web-client/src/helpers' import { mock } from 'vitest-mock-extended' import { defaultComponentMocks, mockAxiosResolve, RouteLocation, getComposableWrapper } from 'web-...
owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsDuplicate.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/spaces/useSpaceActionsDuplicate.spec.ts", "repo_id": "owncloud", "token_count": 2703 }
846
import { Key, ModifierKey, useKeyboardActions } from '../../../../src/composables/keyboardActions' import { getComposableWrapper } from 'web-test-helpers' import { ref } from 'vue' describe('useKeyboardActions', () => { it('should be valid', () => { expect(useKeyboardActions).toBeDefined() }) it('should bin...
owncloud/web/packages/web-pkg/tests/unit/composables/keyboardActions/useKeyboardActions.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/keyboardActions/useKeyboardActions.spec.ts", "repo_id": "owncloud", "token_count": 649 }
847
import { useUpload } from '../../../../src/composables/upload' describe('useUpload', () => { it('should be valid', () => { expect(useUpload).toBeDefined() }) })
owncloud/web/packages/web-pkg/tests/unit/composables/upload/useUpload.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/upload/useUpload.spec.ts", "repo_id": "owncloud", "token_count": 61 }
848
import { cloneStateObject } from '../../../src/helpers/store' describe('cloneStateObject', () => { it('clones object', () => { const og = { id: '1', frozen: 'value' } const cloned = cloneStateObject(og) cloned.frozen = 'updated' expect(og.id).toBe('1') expect(og.frozen).toBe('value') expect...
owncloud/web/packages/web-pkg/tests/unit/helpers/store.spec.ts/0
{ "file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/store.spec.ts", "repo_id": "owncloud", "token_count": 257 }
849
<template> <div class="oc-flex"> <oc-button v-oc-tooltip="descriptionOrFallback" type="a" :href="hrefOrFallback" target="_blank" appearance="raw-inverse" variation="brand" :aria-label="ariaLabelOrFallback" aria-describedby="oc-feedback-link-description" > ...
owncloud/web/packages/web-runtime/src/components/Topbar/FeedbackLink.vue/0
{ "file_path": "owncloud/web/packages/web-runtime/src/components/Topbar/FeedbackLink.vue", "repo_id": "owncloud", "token_count": 578 }
850
import { App } from 'vue' import { RuntimeApi } from '../types' export abstract class NextApplication { protected readonly runtimeApi: RuntimeApi protected constructor(runtimeApi: RuntimeApi) { this.runtimeApi = runtimeApi } abstract initialize(): Promise<void> abstract ready(): Promise<void> abstra...
owncloud/web/packages/web-runtime/src/container/application/next.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/container/application/next.ts", "repo_id": "owncloud", "token_count": 104 }
851
export const getQueryParam = (paramName: string): string | null => { const searchParams = new URLSearchParams(window.location.search) return searchParams.get(paramName) }
owncloud/web/packages/web-runtime/src/helpers/url.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/helpers/url.ts", "repo_id": "owncloud", "token_count": 52 }
852
import { RouteLocation, RouteLocationNormalizedLoaded, RouteLocationRaw, Router } from 'vue-router' // type: patch // temporary patch till we have upgraded web to the latest vue router which make this obsolete // this takes care that routes like 'foo/bar/baz' which by default would be converted to 'foo%2Fbar%2Fbaz' st...
owncloud/web/packages/web-runtime/src/router/patchCleanPath.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/src/router/patchCleanPath.ts", "repo_id": "owncloud", "token_count": 605 }
853
import SidebarNavItem from 'web-runtime/src/components/SidebarNav/SidebarNavItem.vue' import sidebarNavItemFixtures from '../../../__fixtures__/sidebarNavItems' import { defaultPlugins, mount } from 'web-test-helpers' const exampleNavItem = sidebarNavItemFixtures[0] const propsData = { name: exampleNavItem.name, ...
owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/SidebarNavItem.spec.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/components/SidebarNav/SidebarNavItem.spec.ts", "repo_id": "owncloud", "token_count": 393 }
854
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`User Menu component > when no quota and email is set > the user menu does not contain a quota 1`] = ` "<nav data-v-08f1b1e7="" aria-label="Account menu"> <oc-button-stub data-v-08f1b1e7="" id="_userMenuButton" class="oc-topbar-personal" appearanc...
owncloud/web/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap", "repo_id": "owncloud", "token_count": 10560 }
855
import { useAuthStore, useConfigStore } from '@ownclouders/web-pkg' import { mock } from 'vitest-mock-extended' import { AuthService } from 'web-runtime/src/services/auth/authService' import { UserManager } from 'web-runtime/src/services/auth/userManager' import { RouteLocation, createRouter, createTestingPinia } from ...
owncloud/web/packages/web-runtime/tests/unit/services/auth/authService.spec.ts/0
{ "file_path": "owncloud/web/packages/web-runtime/tests/unit/services/auth/authService.spec.ts", "repo_id": "owncloud", "token_count": 1801 }
856
import { mock } from 'vitest-mock-extended' import { ref } from 'vue' import { Resource } from '../../../web-client/src' import { FileResource } from '../../../web-client/src/helpers' import { GetFileContentsResponse } from '../../../web-client/src/webdav/getFileContents' import { FileContext, useAppDefaults, AppConfig...
owncloud/web/packages/web-test-helpers/src/mocks/useAppDefaultsMock.ts/0
{ "file_path": "owncloud/web/packages/web-test-helpers/src/mocks/useAppDefaultsMock.ts", "repo_id": "owncloud", "token_count": 422 }
857
const { Logger } = require('nightwatch') /** * Determine if an element is currently displayed * ".isAnyElementVisible" will automatically wait for the element to be visible (until the specified timeout). * The provided selector may resolve to multiple elements, in that case, it will check if any of them is visible. ...
owncloud/web/tests/acceptance/customCommands/isAnyElementVisible.js/0
{ "file_path": "owncloud/web/tests/acceptance/customCommands/isAnyElementVisible.js", "repo_id": "owncloud", "token_count": 1062 }
858
Feature: User can open the details panel for any file or folder As a user I want to be able to open the details panel of any file or folder So that the details of the file or folder are visible to me Background: Given these users have been created with default attributes and without skeleton files in the s...
owncloud/web/tests/acceptance/features/webUIFilesDetails/fileDetails.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUIFilesDetails/fileDetails.feature", "repo_id": "owncloud", "token_count": 1025 }
859
@public_link_share-feature-required Feature: Access public link shares by public As a public I want to access links shared by a owncloud user So that I get access to files on owncloud Background: Given user "Alice" has been created with default attributes and without skeleton files in the server And us...
owncloud/web/tests/acceptance/features/webUISharingPublicBasic/publicLinkPublicActions.feature/0
{ "file_path": "owncloud/web/tests/acceptance/features/webUISharingPublicBasic/publicLinkPublicActions.feature", "repo_id": "owncloud", "token_count": 1693 }
860
const { client, createSession, closeSession, startWebDriver, stopWebDriver } = require('nightwatch-api') const userSettings = require('./userSettings') module.exports = { /** * Navigates to the login page and fills&submits the login form. * * @param {userId} userId * @param {password} [password...
owncloud/web/tests/acceptance/helpers/loginHelper.js/0
{ "file_path": "owncloud/web/tests/acceptance/helpers/loginHelper.js", "repo_id": "owncloud", "token_count": 781 }
861
const util = require('util') const { client } = require('nightwatch-api') module.exports = { commands: { /** * sets up the xpath for year of expiry date * * @param {Date} date * @returns {{locateStrategy: string, selector: *}} */ getSelectorExpiryDateYear: function (date) { con...
owncloud/web/tests/acceptance/pageObjects/FilesPageElement/expirationDatePicker.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/FilesPageElement/expirationDatePicker.js", "repo_id": "owncloud", "token_count": 3689 }
862
const util = require('util') const xpathHelper = require('../helpers/xpath') const { join, normalize } = require('../helpers/path') const { client } = require('nightwatch-api') module.exports = { url: function () { return join(this.api.launchUrl, '/files/list/all') }, commands: { /** * like build-in...
owncloud/web/tests/acceptance/pageObjects/personalPage.js/0
{ "file_path": "owncloud/web/tests/acceptance/pageObjects/personalPage.js", "repo_id": "owncloud", "token_count": 5451 }
863
const { client } = require('nightwatch-api') const { After, Before, Given, Then, When } = require('@cucumber/cucumber') const httpHelper = require('../helpers/httpHelper') const assert = require('assert') const fs = require('fs') const path = require('path') const occHelper = require('../helpers/occHelper') let initia...
owncloud/web/tests/acceptance/stepDefinitions/generalContext.js/0
{ "file_path": "owncloud/web/tests/acceptance/stepDefinitions/generalContext.js", "repo_id": "owncloud", "token_count": 2372 }
864
{ "id": "ownCloud Infinite Scale Test", "realm": "oCIS", "displayName": "ownCloud Infinite Scale", "notBefore": 0, "defaultSignatureAlgorithm": "RS256", "revokeRefreshToken": false, "refreshTokenMaxReuse": 0, "accessTokenLifespan": 600, "accessTokenLifespanForImplicitFlow": 900, "ssoSessionIdleTimeo...
owncloud/web/tests/drone/ocis_keycloak/ocis-ci-realm.dist.json/0
{ "file_path": "owncloud/web/tests/drone/ocis_keycloak/ocis-ci-realm.dist.json", "repo_id": "owncloud", "token_count": 35198 }
865
Feature: url stability for mobile and desktop client As a user I want to work on different docs, sheets, slides etc.., using online office suites like Collabora or OnlyOffice To make sure that the file can be opened from the mobile and desktop client # To run this feature we need to run the external app-provide...
owncloud/web/tests/e2e/cucumber/features/app-provider/urlJourneys.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/app-provider/urlJourneys.feature", "repo_id": "owncloud", "token_count": 627 }
866
Feature: language settings As a user I want to be able to use the system with my preferred language Background: Given "Admin" creates following users using API | id | | Alice | | Brian | Scenario: system language change And "Brian" logs in And "Brian" creates the following fol...
owncloud/web/tests/e2e/cucumber/features/smoke/languageChange.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/languageChange.feature", "repo_id": "owncloud", "token_count": 674 }
867
Feature: spaces.personal Scenario: unstructured collection of testable space interactions, once all needed features are there, split this into independent tests. contains following features: - ✓ assign role to user - ✓ create space & internal alias to differentiate multiple spaces with the same name ...
owncloud/web/tests/e2e/cucumber/features/spaces/project.feature/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/features/spaces/project.feature", "repo_id": "owncloud", "token_count": 2703 }
868
import { DataTable, When, Then } from '@cucumber/cucumber' import { expect } from '@playwright/test' import { World } from '../../environment' import { objects } from '../../../support' import { Space } from '../../../support/types' When( '{string} navigates to the personal space page', async function (this: World...
owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts/0
{ "file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/spaces.ts", "repo_id": "owncloud", "token_count": 2800 }
869
import join from 'join-path' import fetch, { BodyInit, Response } from 'node-fetch' import { User } from '../types' import { config } from '../../config' import { TokenEnvironmentFactory } from '../environment' export const request = async ({ method, path, body, user, header = {}, isKeycloakRequest = false...
owncloud/web/tests/e2e/support/api/http.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/api/http.ts", "repo_id": "owncloud", "token_count": 462 }
870
export { ActorsEnvironment } from './actor' export { FilesEnvironment } from './file' export { LinksEnvironment } from './link' export { SpacesEnvironment } from './space' export { UsersEnvironment } from './userManagement' export { TokenEnvironmentFactory } from './token' export type { TokenEnvironmentType, TokenProvi...
owncloud/web/tests/e2e/support/environment/index.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/environment/index.ts", "repo_id": "owncloud", "token_count": 86 }
871
import { Page } from '@playwright/test' export class Spaces { #page: Page constructor({ page }: { page: Page }) { this.#page = page } async navigate(): Promise<void> { await this.#page.locator('//a[@data-nav-name="admin-settings-spaces"]').click() await this.#page.locator('#app-loading-spinner')....
owncloud/web/tests/e2e/support/objects/app-admin-settings/page/spaces.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/page/spaces.ts", "repo_id": "owncloud", "token_count": 127 }
872
import { Download, Locator, Page, expect } from '@playwright/test' import util from 'util' import path from 'path' import { resourceExists, waitForResources } from './utils' import { editor, sidebar } from '../utils' import { File, Space } from '../../../types' import { dragDropFiles } from '../../../utils/dragDrop' im...
owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts", "repo_id": "owncloud", "token_count": 20135 }
873
import { Page } from '@playwright/test' import { locatorUtils } from '../../../utils' const openForResource = async ({ page, resource }: { page: Page resource: string }): Promise<void> => { await page .locator( `//span[@data-test-resource-name="${resource}"]/ancestor::tr[contains(@class, "oc-tbody-...
owncloud/web/tests/e2e/support/objects/app-files/utils/sidebar.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/objects/app-files/utils/sidebar.ts", "repo_id": "owncloud", "token_count": 763 }
874
import { BrowserContext, Page } from '@playwright/test' export interface Link { name: string url: string password?: string } export interface Space { name: string id: string } export interface Actor { context: BrowserContext page: Page close(): Promise<void> newPage(page: Page): Promise<Page> } ex...
owncloud/web/tests/e2e/support/types.ts/0
{ "file_path": "owncloud/web/tests/e2e/support/types.ts", "repo_id": "owncloud", "token_count": 315 }
875
/// <reference types="vite/client" /> import { UppyService } from '@ownclouders/web-pkg' import { Route, Router } from 'vue-router' // This file must have at least one export or import on top-level export {} declare global { interface Window { WEB_APPS_MAP: Record<string, string> } } declare module 'vue' { ...
owncloud/web/web.d.ts/0
{ "file_path": "owncloud/web/web.d.ts", "repo_id": "owncloud", "token_count": 229 }
876
![](https://img.shields.io/badge/web安全-靶场-PTEST) ![](https://img.shields.io/badge/version-1.0-success) ![](https://img.shields.io/github/stars/zhuifengshaonianhanlu/pikachu.svg) ![](https://img.shields.io/github/forks/zhuifengshaonianhanlu/pikachu.svg) ![](https://img.shields.io/github/license/zhuifengshaonianhanlu/pik...
zhuifengshaonianhanlu/pikachu/README.md/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/README.md", "repo_id": "zhuifengshaonianhanlu", "token_count": 2089 }
877
<?php ///** // * Created by runner.han // * There is nothing new under the sun // */ ob_start(); if (!isset($PIKA_ROOT_DIR)){ $PIKA_ROOT_DIR = ''; } //$ACTIVE = array("active open","active","","",""); if (!isset($ACTIVE)){ $SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1); ...
zhuifengshaonianhanlu/pikachu/header.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/header.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 22819 }
878
<?php /** * Created by runner.han * There is nothing new under the sun */ include_once '../inc/config.inc.php'; include_once '../inc/mysql.inc.php'; $link=connect(); //设置允许被跨域访问 header("Access-Control-Allow-Origin:*"); $data = $_POST['datax']; $query = "insert keypress(data) values('$data')"; $result=mysqli_query...
zhuifengshaonianhanlu/pikachu/pkxss/rkeypress/rkserver.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/pkxss/rkeypress/rkserver.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 147 }
879
<?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 = "fi_remote.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','...
zhuifengshaonianhanlu/pikachu/vul/fileinclude/fi_remote.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/fileinclude/fi_remote.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1851 }
880
<?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 = "op.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''...
zhuifengshaonianhanlu/pikachu/vul/overpermission/op.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/overpermission/op.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1697 }
881
<?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_id.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','ac...
zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_id.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli_id.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1651 }
882
<?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 = "upload.php"){ $ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','...
zhuifengshaonianhanlu/pikachu/vul/unsafeupload/upload.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/unsafeupload/upload.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 1788 }
883
<?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 = "admin_login...
zhuifengshaonianhanlu/pikachu/vul/xss/xssblind/admin_login.php/0
{ "file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/xssblind/admin_login.php", "repo_id": "zhuifengshaonianhanlu", "token_count": 2492 }
884
# 8th Wall Web 8th Wall Web: WebAR for mobile devices! Built entirely using standards-compliant JavaScript and WebGL, 8th Wall Web is a complete implementation of 8th Wall’s Simultaneous Localization and Mapping (SLAM) engine, hyper-optimized for real-time AR on mobile browsers. Features include World Tracking, Image...
8thwall/web/README.md/0
{ "file_path": "8thwall/web/README.md", "repo_id": "8thwall", "token_count": 371 }
0
/* globals AFRAME */ AFRAME.registerComponent('artgalleryframe', { schema: { name: {type: 'string'}, rotated: {type: 'bool'}, metadata: {type: 'string'}, }, init() { const contents = document.getElementById('contents') const container = document.getElementById('container') const {object3...
8thwall/web/examples/aframe/artgallery/index.js/0
{ "file_path": "8thwall/web/examples/aframe/artgallery/index.js", "repo_id": "8thwall", "token_count": 1705 }
1
import React from 'react' import {BrowserRouter, Routes, Route} from 'react-router-dom' import {Scene} from './views/scene' import {NotFound} from './views/notfound' const App = () => ( <BrowserRouter> <Routes> <Route exact path='/' element={<Scene />} /> <Route path='*' element={<NotFound />} /> ...
8thwall/web/examples/aframe/reactapp/src/App.jsx/0
{ "file_path": "8thwall/web/examples/aframe/reactapp/src/App.jsx", "repo_id": "8thwall", "token_count": 142 }
2
/* Copyright 2011 Lazar Laszlo (lazarsoft@gmail.com, www.lazarsoft.info) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless req...
8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/qrcode.js/0
{ "file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/qrcode.js", "repo_id": "8thwall", "token_count": 5858 }
3
<!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <title>8th Wall Web: A-Frame Image Targets</title> <link rel="stylesheet" type="text/css" href="index.css"> <!-- We've included a slightly modified version of A-Frame, which fixes some poli...
8thwall/web/gettingstarted/aframe-imagetarget/index.html/0
{ "file_path": "8thwall/web/gettingstarted/aframe-imagetarget/index.html", "repo_id": "8thwall", "token_count": 812 }
4
<!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <title>8th Wall Web: three.js Image Targets</title> <link rel="stylesheet" type="text/css" href="index.css"> <!-- THREE.js must be supplied --> <script src="//cdnjs.cloudflare.co...
8thwall/web/gettingstarted/threejs-imagetarget/index.html/0
{ "file_path": "8thwall/web/gettingstarted/threejs-imagetarget/index.html", "repo_id": "8thwall", "token_count": 412 }
5
<!doctype html> <html> <head> <title>XRExtras: A-FRAME</title> <!-- 8thWall Web - Replace the app key here with your own app key --> <script async src="https://apps.8thwall.com/xrweb?appKey=XXXXXXXX"></script> <!-- XR Extras - provides utilities like load screen, almost there, and error handling. ...
8thwall/web/xrextras/index-aframe.html/0
{ "file_path": "8thwall/web/xrextras/index-aframe.html", "repo_id": "8thwall", "token_count": 729 }
6
import { resourceComponent, pbrMaterialComponent, basicMaterialComponent, videoMaterialComponent, hiderMaterialComponent, } from './components/asset-components' import { sessionReconfigureComponent, } from './components/session-reconfigure-components' import { runtimeErrorComponent, statsComponent, ...
8thwall/web/xrextras/src/aframe/xr-components.ts/0
{ "file_path": "8thwall/web/xrextras/src/aframe/xr-components.ts", "repo_id": "8thwall", "token_count": 1281 }
7
/* Preview Container */ #previewContainer { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; z-index: 30; opacity: 0.0; position: fixed; top: 0; left: 0; bottom: 0; right: 0; box-sizing: border-box; pointer-events: none; } #previewContainer.fade-in...
8thwall/web/xrextras/src/mediarecorder/media-preview.css/0
{ "file_path": "8thwall/web/xrextras/src/mediarecorder/media-preview.css", "repo_id": "8thwall", "token_count": 1462 }
8
const DAYS_PER_WEEK = 7 // Hours const HOURS_PER_DAY = 24 const HOURS_PER_WEEK = HOURS_PER_DAY * DAYS_PER_WEEK // Minutes const MINUTES_PER_HOUR = 60 const MINUTES_PER_DAY = MINUTES_PER_HOUR * HOURS_PER_DAY const MINUTES_PER_WEEK = MINUTES_PER_HOUR * HOURS_PER_WEEK // Seconds const SECONDS_PER_MINUTE = 60 const SECO...
8thwall/web/xrextras/src/pwainstallermodule/time.js/0
{ "file_path": "8thwall/web/xrextras/src/pwainstallermodule/time.js", "repo_id": "8thwall", "token_count": 535 }
9
## 一、链接伪类 CSS 伪类是添加到选择器的关键字,用于指定所选元素的特殊状态。 语法: 伪类由冒号(:)后跟着伪类名称组成(例如,:hover) ```css a:link{属性:值;} /*链接默认状态 ( a{属性:值}效果是一样的。)*/ a:visited{属性:值;} /*链接访问之后的状态*/ a:hover{属性:值;} /*鼠标放到链接上显示的状态*/ a:active{属性:值;} /*链接激活的状态*/ a:focus{属性:值;} /*获取焦点*/ ``` > **注意:** > 1.`a:visited`之后要想回到之前的状态,需要清除缓存。 ...
Daotin/Web/02-CSS/01-CSS基础/03-链接伪类、背景、行高、盒子模型、浮动.md/0
{ "file_path": "Daotin/Web/02-CSS/01-CSS基础/03-链接伪类、背景、行高、盒子模型、浮动.md", "repo_id": "Daotin", "token_count": 5965 }
10
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>京东(JD.com)</title> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/index.css"> <link rel="icon" href="images/favicon.ico"> </head> <body> <!--兵马未动粮草先行: 先把注释写好--> <!--site-nav部分start--> <d...
Daotin/Web/02-CSS/03-案例/01-仿JD静态首页/index.html/0
{ "file_path": "Daotin/Web/02-CSS/03-案例/01-仿JD静态首页/index.html", "repo_id": "Daotin", "token_count": 11342 }
11
## 一、为元素绑定多个事件 **前导:**如果一个按钮绑定了多个点击事件,那么点击按钮的时候只会执行最后一个点击事件,前面的点击事件都被覆盖了。那么如何为一个按钮绑定多个相同的事件,并且每个事件都会执行呢? ### 1、为元素绑定多个事件 ```html <body> <input type="button" value="按钮1" id="btn1"> <input type="button" value="按钮2" id="btn2"> <!-- <div id="dv"></div> --> <script src="common.js"></script> <script...
Daotin/Web/03-JavaScript/02-DOM/06-元素绑定解绑事件.md/0
{ "file_path": "Daotin/Web/03-JavaScript/02-DOM/06-元素绑定解绑事件.md", "repo_id": "Daotin", "token_count": 2886 }
12
## 一、同步请求与异步请求 **同步请求:**在用户进行请求发送之后,浏览器会一直等待服务器的数据返回,如果网络延迟比较高,浏览器就一直卡在当前界面,直到服务器返回数据才可进行其他操作。 **异步请求:**在用户进行请求发送之后,浏览器可以自由操作页面中其他的元素,当服务器放回数据的时候,才触发相应事件,对返回的数据进行操作。 如果将 Ajax 请求改为同步请求的话: 1、界面会卡顿,卡顿事件取决于网络速度; 2、xhr.onreadystatechange 的回调函数不会执行,因为在 xhr.send() 之后,xhr.readyState 就为 4 了,所以数据的处理,直接跟在xhr.send() 之后就可以了。...
Daotin/Web/06-Ajax/08-同步异步请求,数据格式.md/0
{ "file_path": "Daotin/Web/06-Ajax/08-同步异步请求,数据格式.md", "repo_id": "Daotin", "token_count": 4691 }
13
## 一、touch事件的缺陷 我们在上面《页面分类》的项目中,对 tap 事件的处理使用的是 touch 事件处理的,因为如果使用 click 事件的话,总会有延时。 但是呢,touch 事件并不是完美的,不管是我们自己封装的 tap 事件,还是 zepto 自带的 tap 事件,在移动端都有一个致命的缺陷,就是“**点透**”。 **什么是“点透”呢?** 假如有两个盒子,盒子A和盒子B,如果盒子A在盒子B的上面,当我们使用 tap 事件点击盒子A的时候,盒子B会触发 click 事件,这就是点透。 ![](./images/6.png) 触发这两个事件的顺序是 tap 事件,然后是 click 事件。因为 tap ...
Daotin/Web/07-移动Web开发/05-touch事件的缺陷,iScroll,swiper.md/0
{ "file_path": "Daotin/Web/07-移动Web开发/05-touch事件的缺陷,iScroll,swiper.md", "repo_id": "Daotin", "token_count": 4178 }
14
## 1、案例要求 利用响应式布局,实现微金所页面结构。 ## 2、不同屏幕尺寸布局 ### 整体样式 ![](./images/17.png) ### 中大屏幕下样式 ![](./images/14.png) ### 小屏幕下样式 ![](./images/13.png) ### 超小屏幕(移动端)下样式 ![](./images/12.png) ## 3、代码结构 ![](./images/15.png) ## 4、页面结构 页面结构主要分8大块: - 头部块 - 导航条 - 轮播图 - 信息块 - 预约块 - 产品块 - 新闻块 - ...
Daotin/Web/07-移动Web开发/案例01:微金所官网首页.md/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例01:微金所官网首页.md", "repo_id": "Daotin", "token_count": 29854 }
15
$(function () { // 1.在开始和最后位置添加图片 // 2.重新设置图片盒子的宽度和图片的宽度 // 3.添加定时器,自动轮播 // 4.添加过渡结束事件 // 5.设置小白点 // 6.添加手动轮播 // 获取元素 var ulObj = $(".slideshow-img"); var first = ulObj.find("li:first-of-type"); var last = ulObj.find("li:last-of-type"); var bannerWidth = $(".slideshow").w...
Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/js/index-zepto.js/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/02-仿JD移动端/js/index-zepto.js", "repo_id": "Daotin", "token_count": 2535 }
16
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ .btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger { text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); -webkit-box-shadow: inset...
Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/bootstrap/css/bootstrap-theme.css/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/bootstrap/css/bootstrap-theme.css", "repo_id": "Daotin", "token_count": 10269 }
17
// Rotated & Flipped Icons // ------------------------- .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } .#{$fa-css-prefix}-flip-horizontal { @include fa-ico...
Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_rotated-flipped.scss/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/scss/_rotated-flipped.scss", "repo_id": "Daotin", "token_count": 300 }
18
/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */ (function( w ){ "use strict"; // Bail out for browsers that have addListener support if (w.matchMedia && w.matchMedia('all').addListener) { return false; } var localMatchMedia = w.mat...
Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/respond/matchmedia.addListener.js/0
{ "file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/respond/matchmedia.addListener.js", "repo_id": "Daotin", "token_count": 898 }
19
npm又称为包管理工具。 一般安装nodejs时会自带npm管理工具。 测试npm是否安装成功: ```js npm -v ``` 如果能成功打印版本号则安装成功。 如果需要使用npm下载安装软件,需要在项目下有一个`package.json` 文件。这个文件可以自己创建,也可以使用npm指令创建,用npm指令创建简单一些,不用在意修改其中的内容。 ## 创建模块化开发项目 **1、创建package.json文件** ```js npm init ``` 创建的过程中会提示输入项目的名称等等一些问题,如果不在意的话,一路回车即可。 **2、向项目添加工具(这里以jQuery为例)** ```js ...
Daotin/Web/10-Node.js/01-npm.md/0
{ "file_path": "Daotin/Web/10-Node.js/01-npm.md", "repo_id": "Daotin", "token_count": 2288 }
20
##一、Webpack介绍 Webpack 中文官网 https://www.webpackjs.com/ ![](./images/14.png) ### 1、什么是webpack? Webpack是一个**模块打包器(bundler)**。 但是,webpack的**核心功能**是: > 把模块化规范的代码,比如commonJS等编译成浏览器能识别的代码输出出来(也叫作前端模块化) **我们知道在之前,commonJS规范的代码只能在node后端中运行(node是原生支持commonJS模块化的),如果在前端使用的话,会报一个错误:‘require is not defined’ 找不到require,这就...
Daotin/Web/11-自动化构建/03-Webpack.md/0
{ "file_path": "Daotin/Web/11-自动化构建/03-Webpack.md", "repo_id": "Daotin", "token_count": 10011 }
21
​ 使用示例还是 **vue的组件** --- ## 一、Vuex Vuex 是一个专为 Vue.js 应用程序开发的**状态管理模式**。它采用集中式存储管理应用的所有组件的状态(意思就是数据),并以相应的规则保证状态以一种可预测的方式发生变化。 简单来说,vuex就是用来集中管理组件的数据的。 ## 二、Vuex使用场合 如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的。确实是如此——如果您的应用够简单,您最好不要使用 Vuex。一个简单的 store 模式就足够您所需了。但是,如果您需要构建一个中大型单页应用,您很可能会考虑如何更好地在组件外部管理状态,Vuex 将会成为自然而然的选择。引用 ...
Daotin/Web/12-Vue/09-vuex.md/0
{ "file_path": "Daotin/Web/12-Vue/09-vuex.md", "repo_id": "Daotin", "token_count": 11712 }
22
基础事件参考 :v-on 指令 --- ## 自定义事件 ![](https://raw.githubusercontent.com/Daotin/pic/master/img/20190711114842.png) ## 自定义组件使用v-model **(2.2.0+新增)** > 一个组件上的 `v-model` 默认会利用名为 `value` 的 prop 和名为 `input` 的事件。 我们知道 v-model 其实是个语法糖。 ```vue <input v-model="searchText"> ``` 等价于 ```vue <input :value="searchText"...
Daotin/Web/12-Vue/自定义事件.md/0
{ "file_path": "Daotin/Web/12-Vue/自定义事件.md", "repo_id": "Daotin", "token_count": 1031 }
23
/* 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步 - 创建数据库/release_feature.sql/0
{ "file_path": "Humsen/web/docs/数据库部署/第1步 - 创建数据库/release_feature.sql", "repo_id": "Humsen", "token_count": 431 }
24
package pers.husen.web.bean.vo; import java.io.Serializable; import java.util.Date; /** * * * @author 何明胜 * * 2017年10月17日 */ public class ReleaseFeatureVo implements Serializable{ private static final long serialVersionUID = 1L; private int releaseId; private String releaseAuthor; private Date releaseDate...
Humsen/web/web-core/src/pers/husen/web/bean/vo/ReleaseFeatureVo.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/bean/vo/ReleaseFeatureVo.java", "repo_id": "Humsen", "token_count": 588 }
25
package pers.husen.web.common.helper; /** * 获取指定长度的验证码 * * @author 何明胜 * * 2017年10月27日 */ public class RandomCodeHelper { public static int producedRandomCode(double length) { int randomCode = (int)(Math.random() * Math.pow(10, length)); //进制系统,这里是10进制 int decimalSystem = 10; while(randomCode...
Humsen/web/web-core/src/pers/husen/web/common/helper/RandomCodeHelper.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/common/helper/RandomCodeHelper.java", "repo_id": "Humsen", "token_count": 240 }
26
package pers.husen.web.dao; import java.util.ArrayList; import pers.husen.web.bean.vo.FileDownloadVo; /** * @author 何明胜 * * 2017年9月29日 */ public interface FileDownloadDao { /** * 查询下载区数量 * * @return */ public int queryFileTotalCount(); /** * 查询某一页的下载区 * * @param pageSize * @param pageNo ...
Humsen/web/web-core/src/pers/husen/web/dao/FileDownloadDao.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dao/FileDownloadDao.java", "repo_id": "Humsen", "token_count": 394 }
27
package pers.husen.web.dbutil; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Date; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import pers.husen.web.common.helper.StackTrace2Str; import pe...
Humsen/web/web-core/src/pers/husen/web/dbutil/DbQueryUtils.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/DbQueryUtils.java", "repo_id": "Humsen", "token_count": 1553 }
28
package pers.husen.web.service; import java.util.ArrayList; import pers.husen.web.bean.vo.ArticleCategoryVo; import pers.husen.web.dao.ArticleCategoryDao; import pers.husen.web.dao.impl.ArticleCategoryDaoImpl; /** * @desc 文章分类服务类 * * @author 何明胜 * * @created 2017年12月12日 上午10:38:46 */ public class ArticleCatego...
Humsen/web/web-core/src/pers/husen/web/service/ArticleCategorySvc.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/service/ArticleCategorySvc.java", "repo_id": "Humsen", "token_count": 325 }
29
package pers.husen.web.servlet.category; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; im...
Humsen/web/web-core/src/pers/husen/web/servlet/category/CategorySvt.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/category/CategorySvt.java", "repo_id": "Humsen", "token_count": 981 }
30
package pers.husen.web.servlet.releasefea; 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; imp...
Humsen/web/web-core/src/pers/husen/web/servlet/releasefea/LatestRlseFetrSvt.java/0
{ "file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/releasefea/LatestRlseFetrSvt.java", "repo_id": "Humsen", "token_count": 684 }
31
@charset "UTF-8"; .form-group-div-label { margin-left: 0 !important; margin-right: 0 !important; } .form-div-label { text-align: left !important; padding-left: 0; width: 20% } .form-div-input { padding-right: 0 !important; } .form-group-div-input{ padding-left: 0 }
Humsen/web/web-mobile/WebContent/css/login/retrive-pwd.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/css/login/retrive-pwd.css", "repo_id": "Humsen", "token_count": 118 }
32
/** * 加载博客目录 * * @author 何明胜 * * 2017年9月18日 */ /** 加载插件 * */ $.ajax({ url : '/plugins/plugins.html', // 这里是静态页的地址 async : false, type : 'GET', // 静态页用get方法,否则服务器会抛出405错误 success : function(data) { $($('head')[0]).find('script:first').after(data); } }); $(function() { /** 顶部导航栏 **/ $.ajax({ url : '/...
Humsen/web/web-mobile/WebContent/js/article/blog.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/js/article/blog.js", "repo_id": "Humsen", "token_count": 2074 }
33
<!-- 上部导航栏 --> <link rel="stylesheet" href="/css/navigation/topbar.css"> <!-- 登录、注册表单验证 --> <script src="/js/login/formvalidator.js"></script> <!-- md5加密 --> <script src="/js/customize-jquery.md5.js"></script> <!-- 自定义js --> <script src="/js/navigation/topbar.js"></script> <nav id="topBar" class="navbar navbar-defa...
Humsen/web/web-mobile/WebContent/module/navigation/topbar.html/0
{ "file_path": "Humsen/web/web-mobile/WebContent/module/navigation/topbar.html", "repo_id": "Humsen", "token_count": 913 }
34
.CodeMirror-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: auto; z-index: 9; }
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/display/fullscreen.css/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/display/fullscreen.css", "repo_id": "Humsen", "token_count": 49 }
35
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/fold/indent-fold.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/fold/indent-fold.js", "repo_id": "Humsen", "token_count": 586 }
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/addon/lint/lint.js/0
{ "file_path": "Humsen/web/web-mobile/WebContent/plugins/editormd/lib/codemirror/addon/lint/lint.js", "repo_id": "Humsen", "token_count": 2831 }
37