text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
export * from './apps'
export * from './auth'
export * from './capabilities'
export * from './clipboard'
export * from './config'
export * from './extensionRegistry'
export * from './messages'
export * from './modals'
export * from './resources'
export * from './shares'
export * from './spaces'
export * from './theme'
... | owncloud/web/packages/web-pkg/src/composables/piniaStores/index.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/piniaStores/index.ts",
"repo_id": "owncloud",
"token_count": 113
} | 900 |
import {
Resource,
buildShareSpaceResource,
isMountPointSpaceResource,
OCM_PROVIDER_ID
} from '@ownclouders/web-client/src/helpers'
import { computed, unref } from 'vue'
import { useClientService } from '../clientService'
import { urlJoin } from '@ownclouders/web-client/src/utils'
import { useLoadFileInfoById }... | owncloud/web/packages/web-pkg/src/composables/resources/useGetResourceContext.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/resources/useGetResourceContext.ts",
"repo_id": "owncloud",
"token_count": 876
} | 901 |
export abstract class SearchLocationFilterConstants {
static readonly allFiles: string = 'all-files'
static readonly currentFolder: string = 'current-folder'
}
| owncloud/web/packages/web-pkg/src/composables/search/constants.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/search/constants.ts",
"repo_id": "owncloud",
"token_count": 42
} | 902 |
import { buildSpace, SpaceResource } from '@ownclouders/web-client/src/helpers'
import { Drive } from '@ownclouders/web-client/src/generated'
import { useGettext } from 'vue3-gettext'
import { useClientService } from '../clientService'
import { useConfigStore } from '../piniaStores'
export const useCreateSpace = () =>... | owncloud/web/packages/web-pkg/src/composables/spaces/useCreateSpace.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/composables/spaces/useCreateSpace.ts",
"repo_id": "owncloud",
"token_count": 576
} | 903 |
export abstract class ClipboardActions {
static readonly Cut = 'cut'
static readonly Copy = 'copy'
}
| owncloud/web/packages/web-pkg/src/helpers/clipboardActions.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/clipboardActions.ts",
"repo_id": "owncloud",
"token_count": 31
} | 904 |
export enum ResolveStrategy {
SKIP,
REPLACE,
KEEP_BOTH,
MERGE
}
export interface ResolveConflict {
strategy: ResolveStrategy
doForAllConflicts: boolean
}
export enum TransferType {
COPY,
MOVE
}
| owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/types.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/resource/conflictHandling/types.ts",
"repo_id": "owncloud",
"token_count": 77
} | 905 |
import { SortDir, SortField } from '../../composables/sort'
export const determineResourceTableSortFields = (firstResource): SortField[] => {
if (!firstResource) {
return []
}
return [
{
name: 'name',
sortable: true,
sortDir: SortDir.Asc
},
{
name: 'size',
sortable:... | owncloud/web/packages/web-pkg/src/helpers/ui/resourceTable.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/helpers/ui/resourceTable.ts",
"repo_id": "owncloud",
"token_count": 759
} | 906 |
// Workaround https://github.com/npm/node-semver/issues/381
import major from 'semver/functions/major'
import rcompare from 'semver/functions/rcompare'
import { RuntimeError } from '../errors'
import { HttpError } from '@ownclouders/web-client/src/errors'
import { ClientService } from '../services'
import { urlJoin } ... | owncloud/web/packages/web-pkg/src/services/archiver.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/archiver.ts",
"repo_id": "owncloud",
"token_count": 1701
} | 907 |
import Uppy, { BasePlugin, UppyFile, UIPlugin } from '@uppy/core'
import Tus from '@uppy/tus'
import { TusOptions } from '@uppy/tus'
import XHRUpload, { XHRUploadOptions } from '@uppy/xhr-upload'
import { Language } from 'vue3-gettext'
import { eventBus } from '../eventBus'
import DropTarget from '@uppy/drop-target'
im... | owncloud/web/packages/web-pkg/src/services/uppy/uppyService.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/src/services/uppy/uppyService.ts",
"repo_id": "owncloud",
"token_count": 3347
} | 908 |
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`The external app loading screen component > displays a spinner and a paragraph 1`] = `
"<div class="oc-text-center oc-flex oc-flex-center oc-flex-middle oc-height-1-1">
<oc-spinner-stub arialabel="" size="xlarge"></oc-spinner-stub>
<p class="oc... | owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/__snapshots__/LoadingScreen.spec.ts.snap/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/AppTemplates/__snapshots__/LoadingScreen.spec.ts.snap",
"repo_id": "owncloud",
"token_count": 150
} | 909 |
import { defaultPlugins, shallowMount } from 'web-test-helpers'
import ResourceTile from '../../../../src/components/FilesList/ResourceTile.vue'
const getSpaceMock = (disabled = false) => ({
name: 'Space 1',
path: '',
type: 'space',
isFolder: true,
disabled,
getDriveAliasAndItem: () => '1'
})
describe('Oc... | owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceTile.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/FilesList/ResourceTile.spec.ts",
"repo_id": "owncloud",
"token_count": 465
} | 910 |
import { mock } from 'vitest-mock-extended'
import { ResourcePreview } from '../../../../src/components'
import { SpaceResource } from '@ownclouders/web-client/src'
import { useGetMatchingSpace } from '../../../../src/composables/spaces/useGetMatchingSpace'
import {
defaultComponentMocks,
defaultPlugins,
shallowM... | owncloud/web/packages/web-pkg/tests/unit/components/Search/ResourcePreview.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/Search/ResourcePreview.spec.ts",
"repo_id": "owncloud",
"token_count": 1209
} | 911 |
import SpaceInfo from '../../../../../src/components/SideBar/Spaces/SpaceInfo.vue'
import { defaultPlugins, shallowMount } from 'web-test-helpers'
const spaceMock = {
type: 'space',
name: ' space',
id: '1',
mdate: 'Wed, 21 Oct 2015 07:28:00 GMT',
spaceQuota: {
used: 100
}
}
const selectors = {
name:... | owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/SpaceInfo.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/components/sidebar/Spaces/SpaceInfo.spec.ts",
"repo_id": "owncloud",
"token_count": 353
} | 912 |
import { useFileActionsSetImage } from '../../../../../src'
import { useMessages } from '../../../../../src/composables/piniaStores'
import { buildSpace, Resource, SpaceResource } from '@ownclouders/web-client/src/helpers'
import { mock } from 'vitest-mock-extended'
import {
defaultComponentMocks,
RouteLocation,
... | owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsSetImage.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/actions/files/useFileActionsSetImage.spec.ts",
"repo_id": "owncloud",
"token_count": 2714
} | 913 |
import { mock } from 'vitest-mock-extended'
import { SpaceResource } from '@ownclouders/web-client/src'
import { RouteLocation, getComposableWrapper } from 'web-test-helpers/src'
import { useBreadcrumbsFromPath } from '../../../../src/composables/breadcrumbs'
describe('useBreadcrumbsFromPath', () => {
describe('buil... | owncloud/web/packages/web-pkg/tests/unit/composables/breadcrumbs/useBreadcrumbsFromPath.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/breadcrumbs/useBreadcrumbsFromPath.spec.ts",
"repo_id": "owncloud",
"token_count": 732
} | 914 |
import { mock } from 'vitest-mock-extended'
import { useScrollTo } from '../../../../src/composables/scrollTo'
import { Resource } from '@ownclouders/web-client/src'
import { eventBus } from '../../../../src/services'
import { defaultComponentMocks } from 'web-test-helpers/src/mocks/defaultComponentMocks'
import { getC... | owncloud/web/packages/web-pkg/tests/unit/composables/scrollTo/useScrollTo.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/composables/scrollTo/useScrollTo.spec.ts",
"repo_id": "owncloud",
"token_count": 2665
} | 915 |
import {
ResolveConflict,
ResourceTransfer,
TransferType,
resolveFileNameDuplicate
} from '../../../../../src/helpers/resource/conflictHandling'
import { mock, mockDeep, mockReset } from 'vitest-mock-extended'
import { buildSpace, Resource } from '@ownclouders/web-client/src/helpers'
import { ListFilesResult } ... | owncloud/web/packages/web-pkg/tests/unit/helpers/resource/conflictHandling/resourcesTransfer.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/helpers/resource/conflictHandling/resourcesTransfer.spec.ts",
"repo_id": "owncloud",
"token_count": 2305
} | 916 |
import { ClientService, PreviewService } from '../../../src/services'
import { mock, mockDeep } from 'vitest-mock-extended'
import { createTestingPinia } from 'web-test-helpers'
import { Resource, SpaceResource } from '@ownclouders/web-client'
import { AxiosResponse } from 'axios'
import {
useAuthStore,
useUserStor... | owncloud/web/packages/web-pkg/tests/unit/services/previewService.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-pkg/tests/unit/services/previewService.spec.ts",
"repo_id": "owncloud",
"token_count": 2388
} | 917 |
<template>
<oc-modal
v-if="modal"
:element-id="modal.elementId"
:element-class="modal.elementClass"
:title="modal.title"
:variation="modal.variation"
:icon="modal.icon"
:message="modal.message"
:has-input="modal.hasInput"
:input-description="modal.inputDescription"
:input-error... | owncloud/web/packages/web-runtime/src/components/ModalWrapper.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/components/ModalWrapper.vue",
"repo_id": "owncloud",
"token_count": 1419
} | 918 |
import LayoutPlain from '../../layouts/Plain.vue'
import LayoutApplication from '../../layouts/Application.vue'
import LayoutLoading from '../../layouts/Loading.vue'
import { isPublicLinkContextRequired, isUserContextRequired } from '../../router'
import { computed, unref } from 'vue'
import { Router } from 'vue-router... | owncloud/web/packages/web-runtime/src/composables/layout/useLayout.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/composables/layout/useLayout.ts",
"repo_id": "owncloud",
"token_count": 619
} | 919 |
import { ConfigStore } from '@ownclouders/web-pkg'
import { v4 as uuidV4 } from 'uuid'
import merge from 'lodash-es/merge'
export const loadCustomTranslations = async ({
configStore
}: {
configStore: ConfigStore
}): Promise<unknown> => {
const customTranslations = {}
for (const customTranslation of configStore... | owncloud/web/packages/web-runtime/src/helpers/customTranslations.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/helpers/customTranslations.ts",
"repo_id": "owncloud",
"token_count": 320
} | 920 |
<template>
<div class="oc-login-card oc-position-center">
<img class="oc-login-logo" :src="logoImg" alt="" :aria-hidden="true" />
<div class="oc-login-card-body">
<h1 v-translate class="oc-login-card-title">Missing or invalid config</h1>
<p v-translate>Please check if the file config.json exists a... | owncloud/web/packages/web-runtime/src/pages/missingOrInvalidConfig.vue/0 | {
"file_path": "owncloud/web/packages/web-runtime/src/pages/missingOrInvalidConfig.vue",
"repo_id": "owncloud",
"token_count": 589
} | 921 |
import Avatar from 'web-runtime/src/components/Avatar.vue'
import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers'
import { mock, mockDeep } from 'vitest-mock-extended'
import { CapabilityStore, ClientService } from '@ownclouders/web-pkg'
import { AxiosResponse } from 'axios'
import { nex... | owncloud/web/packages/web-runtime/tests/unit/components/Avatar.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Avatar.spec.ts",
"repo_id": "owncloud",
"token_count": 1541
} | 922 |
import { computed } from 'vue'
import TopBar from 'web-runtime/src/components/Topbar/TopBar.vue'
import { defaultComponentMocks, defaultPlugins, shallowMount } from 'web-test-helpers'
const mockUseEmbedMode = vi.fn().mockReturnValue({ isEnabled: computed(() => false) })
vi.mock('@ownclouders/web-pkg', async (importOr... | owncloud/web/packages/web-runtime/tests/unit/components/Topbar/TopBar.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/components/Topbar/TopBar.spec.ts",
"repo_id": "owncloud",
"token_count": 1261
} | 923 |
import account from '../../../src/pages/account.vue'
import {
defaultComponentMocks,
defaultPlugins,
mockAxiosResolve,
shallowMount,
mockAxiosReject
} from 'web-test-helpers'
import { mock } from 'vitest-mock-extended'
import { AxiosResponse } from 'axios'
import { useMessages, useResourcesStore } from '@ownc... | owncloud/web/packages/web-runtime/tests/unit/pages/account.spec.ts/0 | {
"file_path": "owncloud/web/packages/web-runtime/tests/unit/pages/account.spec.ts",
"repo_id": "owncloud",
"token_count": 4218
} | 924 |
export * from './mocks/defaultComponentMocks'
export * from './mocks/defaultStubs'
export * from './mocks'
export * from './defaultPlugins'
export * from './helpers'
| owncloud/web/packages/web-test-helpers/src/index.ts/0 | {
"file_path": "owncloud/web/packages/web-test-helpers/src/index.ts",
"repo_id": "owncloud",
"token_count": 55
} | 925 |
#!/usr/bin/env bash
# when deleting the tests suites from /features there might be the tests scenarios that might be in the expected to failure file
# this script checks if there are such scenarios in the expected to failure file which needs to be deleted
# helper functions
log_error() {
echo -e "\e[31m$1\e[0m"
}
l... | owncloud/web/tests/acceptance/check-deleted-suites-in-expected-failure.sh/0 | {
"file_path": "owncloud/web/tests/acceptance/check-deleted-suites-in-expected-failure.sh",
"repo_id": "owncloud",
"token_count": 887
} | 926 |
## Scenarios from web tests that are expected to fail on OCIS with OCIS storage
Lines that contain a format like "[someSuite.someFeature.feature:n](https://github.com/owncloud/web/path/to/feature)"
are lines that document a specific expected failure. Follow that with a URL to the line in the feature file in GitHub.
Pl... | owncloud/web/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md/0 | {
"file_path": "owncloud/web/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md",
"repo_id": "owncloud",
"token_count": 164
} | 927 |
@ocis-reva-issue-194
Feature: Sharing files and folders with internal groups
As a user
I want to share files and folders with groups
So that those groups can access the files and folders
Background:
Given the administrator has set the default folder for received shares to "Shares" in the server
And the... | owncloud/web/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature",
"repo_id": "owncloud",
"token_count": 1623
} | 928 |
Feature: File Upload
As a QA engineer
I would like to test uploads of all kind of funny filenames via the WebUI
These tests are written in a way that multiple file names are tested in one scenario
that is not academically correct but saves a lot of time
Background:
Given user "Alice" has been created w... | owncloud/web/tests/acceptance/features/webUIUpload/uploadEdgecases.feature/0 | {
"file_path": "owncloud/web/tests/acceptance/features/webUIUpload/uploadEdgecases.feature",
"repo_id": "owncloud",
"token_count": 2064
} | 929 |
const chromedriver = require('chromedriver')
const path = require('path')
const withHttp = (url) => (/^https?:\/\//i.test(url) ? url : `http://${url}`)
const RUN_WITH_LDAP = process.env.RUN_WITH_LDAP === 'true'
const LOCAL_LAUNCH_URL = withHttp(process.env.SERVER_HOST || 'https://host.docker.internal:9200')
const LOCA... | owncloud/web/tests/acceptance/nightwatch.conf.js/0 | {
"file_path": "owncloud/web/tests/acceptance/nightwatch.conf.js",
"repo_id": "owncloud",
"token_count": 1620
} | 930 |
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/files/favorites/')
},
commands: {
/**
* like build-in navigate() but also waits till for the progressbar to appear and disappear
* @returns {*}
*/
navigateAndWaitTillLoad... | owncloud/web/tests/acceptance/pageObjects/favoritesPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/favoritesPage.js",
"repo_id": "owncloud",
"token_count": 184
} | 931 |
const util = require('util')
const { client } = require('nightwatch-api')
const { join } = require('../helpers/path')
module.exports = {
url: function () {
return join(this.api.launchUrl, '/')
},
commands: {
/**
* @param {string} page
*/
navigateToUsingMenu: async function (page) {
co... | owncloud/web/tests/acceptance/pageObjects/webPage.js/0 | {
"file_path": "owncloud/web/tests/acceptance/pageObjects/webPage.js",
"repo_id": "owncloud",
"token_count": 3691
} | 932 |
const { Then } = require('@cucumber/cucumber')
require('url-search-params-polyfill')
const httpHelper = require('../helpers/httpHelper')
const webdavHelper = require('../helpers/webdavHelper')
const { client } = require('nightwatch-api')
const { xml2js } = require('xml-js')
const _ = require('lodash')
const assert = re... | owncloud/web/tests/acceptance/stepDefinitions/webdavContext.js/0 | {
"file_path": "owncloud/web/tests/acceptance/stepDefinitions/webdavContext.js",
"repo_id": "owncloud",
"token_count": 1157
} | 933 |
Feature: general management
Scenario: logo can be changed in the admin settings
When "Admin" logs in
And "Admin" opens the "admin-settings" app
And "Admin" navigates to the general management page
Then "Admin" should be able to upload a logo from the local file "filesForUpload/testavatar.png"
And... | owncloud/web/tests/e2e/cucumber/features/admin-settings/general.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/admin-settings/general.feature",
"repo_id": "owncloud",
"token_count": 129
} | 934 |
Feature: access breadcrumb
As a user
I want to browse to parent folders using breadcrumb
So that I can access resources with ease
Scenario: breadcrumb navigation
Given "Admin" creates following user using API
| id |
| Alice |
And "Alice" logs in
And "Alice" creates the following res... | owncloud/web/tests/e2e/cucumber/features/smoke/breadcrumb.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/breadcrumb.feature",
"repo_id": "owncloud",
"token_count": 484
} | 935 |
Feature: web can be navigated through urls
Scenario: navigate web directly through urls
Given "Admin" creates following user using API
| id |
| Alice |
| Brian |
And "Alice" logs in
And "Alice" creates the following folders in personal space using API
| name |
| FOLDER... | owncloud/web/tests/e2e/cucumber/features/smoke/urlJourneys.feature/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/features/smoke/urlJourneys.feature",
"repo_id": "owncloud",
"token_count": 1071
} | 936 |
import { DataTable, Then, When } from '@cucumber/cucumber'
import { World } from '../../environment'
import { objects } from '../../../support'
import { expect } from '@playwright/test'
Then(
'{string} should see the following notification(s)',
async function (this: World, stepUser: string, stepTable: DataTable): ... | owncloud/web/tests/e2e/cucumber/steps/ui/notifications.ts/0 | {
"file_path": "owncloud/web/tests/e2e/cucumber/steps/ui/notifications.ts",
"repo_id": "owncloud",
"token_count": 406
} | 937 |
export * from './openWithWeb'
| owncloud/web/tests/e2e/support/api/external/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/external/index.ts",
"repo_id": "owncloud",
"token_count": 10
} | 938 |
import join from 'join-path'
import { checkResponseStatus, request } from '../http'
import { User } from '../../types'
export const disableAutoAcceptShare = async ({ user }: { user: User }): Promise<void> => {
const body = JSON.stringify({
value: {
accountUuid: 'me',
bundleId: '2a506de7-99bd-4f0d-99... | owncloud/web/tests/e2e/support/api/userSettings/settings.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/api/userSettings/settings.ts",
"repo_id": "owncloud",
"token_count": 292
} | 939 |
import { Page } from '@playwright/test'
import util from 'util'
import { selectUser } from '../users/actions'
const newGroupBtn = '#create-group-btn'
const createGroupInput = '#create-group-input-display-name'
const actionConfirmButton = '.oc-modal-body-actions-confirm'
const editActionBtnContextMenu = '.context-menu ... | owncloud/web/tests/e2e/support/objects/app-admin-settings/groups/actions.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-admin-settings/groups/actions.ts",
"repo_id": "owncloud",
"token_count": 1612
} | 940 |
import { Download, Page } from '@playwright/test'
import { File } from '../../../types'
import util from 'util'
import path from 'path'
import * as po from '../resource/actions'
const passwordInput = 'input[type="password"]'
const fileUploadInput = '//input[@id="files-file-upload-input"]'
const dropUploadResourceSelec... | owncloud/web/tests/e2e/support/objects/app-files/page/public.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/page/public.ts",
"repo_id": "owncloud",
"token_count": 1221
} | 941 |
import { Page } from '@playwright/test'
import { SpacesEnvironment, LinksEnvironment } from '../../../environment'
import { File } from '../../../types'
import * as po from './actions'
import { spaceWithSpaceIDNotExist } from './utils'
import { ICollaborator } from '../share/collaborator'
export class Spaces {
#page... | owncloud/web/tests/e2e/support/objects/app-files/spaces/index.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/objects/app-files/spaces/index.ts",
"repo_id": "owncloud",
"token_count": 1312
} | 942 |
import { KeycloakRealmRole } from '../types'
export const keycloakRealmRoles = new Map<string, KeycloakRealmRole>()
| owncloud/web/tests/e2e/support/store/keycloak.ts/0 | {
"file_path": "owncloud/web/tests/e2e/support/store/keycloak.ts",
"repo_id": "owncloud",
"token_count": 40
} | 943 |
export default {}
| owncloud/web/tests/unit/stubs/empty.ts/0 | {
"file_path": "owncloud/web/tests/unit/stubs/empty.ts",
"repo_id": "owncloud",
"token_count": 4
} | 944 |
<?php
include_once "inc/config.inc.php";
include_once "inc/mysql.inc.php";
$html='';
try
{
$link = mysqli_connect(DBHOST,DBUSER,DBPW,DBNAME);
}
catch(Exception $e)
{
$html.=
"<p >
<a href='pkxss_install.php' style='color:red;'>
提示:欢迎使用xss后台,点击进行初始化安装!
</a>
</p>";
}
if (@$l... | zhuifengshaonianhanlu/pikachu/pkxss/index.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/pkxss/index.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 440
} | 945 |
<?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 = "token_get_login.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','active open','','','','a... | zhuifengshaonianhanlu/pikachu/vul/csrf/csrftoken/token_get_login.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/csrf/csrftoken/token_get_login.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2162
} | 946 |
<?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.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','activ... | zhuifengshaonianhanlu/pikachu/vul/sqli/sqli.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/sqli/sqli.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 2045
} | 947 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "ssrf_curl.php"){
$ACTIVE = array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','... | zhuifengshaonianhanlu/pikachu/vul/ssrf/ssrf_curl.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/ssrf/ssrf_curl.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1388
} | 948 |
<?php
/**
* Created by runner.han
* There is nothing new under the sun
*/
$SELF_PAGE = substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/')+1);
if ($SELF_PAGE = "xss_04.php"){
$ACTIVE = array('','','','','','','','active open','','','','','','','','','','active','','','','','','','','','','','','','',... | zhuifengshaonianhanlu/pikachu/vul/xss/xss_04.php/0 | {
"file_path": "zhuifengshaonianhanlu/pikachu/vul/xss/xss_04.php",
"repo_id": "zhuifengshaonianhanlu",
"token_count": 1665
} | 949 |
# 8th Wall Web Examples - AFrame - Alpha Video
This example uses an A-Frame component for background removal of an mp4 video file.
Check out the component [here](https://github.com/nikolaiwarner/aframe-chromakey-material/blob/master/README.md).

U... | 8thwall/web/examples/aframe/alpha-video/README.md/0 | {
"file_path": "8thwall/web/examples/aframe/alpha-video/README.md",
"repo_id": "8thwall",
"token_count": 175
} | 0 |
# A-Frame: Manipulate 3D Model
[Try the live demo here](https://8thwall.8thwall.app/manipulate-aframe)
This example allows the user to position, scale, and rotate an object using raycasting and gesture inputs.

### Project Components
```xrextras-gestur... | 8thwall/web/examples/aframe/manipulate/README.md/0 | {
"file_path": "8thwall/web/examples/aframe/manipulate/README.md",
"repo_id": "8thwall",
"token_count": 503
} | 1 |
import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
)
// If you want to star... | 8thwall/web/examples/aframe/reactapp/src/index.jsx/0 | {
"file_path": "8thwall/web/examples/aframe/reactapp/src/index.jsx",
"repo_id": "8thwall",
"token_count": 168
} | 2 |
# 8th Wall Web Examples - Babylon.js
Example 8th Wall Web projects using Babylon.js:
* [Tap to place](https://github.com/8thwall/web/tree/master/examples/babylonjs/placeground) - This interactive example allows the user to grow trees on the ground by tapping. This showcases raycasting, instantiating objects, importin... | 8thwall/web/examples/babylonjs/README.md/0 | {
"file_path": "8thwall/web/examples/babylonjs/README.md",
"repo_id": "8thwall",
"token_count": 185
} | 3 |
/*
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/bitmat.js/0 | {
"file_path": "8thwall/web/examples/camerapipeline/qrcode/jsqrcode/src/bitmat.js",
"repo_id": "8thwall",
"token_count": 1037
} | 4 |
# 8th Wall Web Examples - Camera Pipeline - Simple Shaders
This example shows how to apply simple shaders to the camera feed.
Simple Shaders
:----------:

[Try Demo (mobile)](https://apps.8thwall.com/8thWall/camerapipeline_simpleshaders)
or scan... | 8thwall/web/examples/camerapipeline/simpleshaders/README.md/0 | {
"file_path": "8thwall/web/examples/camerapipeline/simpleshaders/README.md",
"repo_id": "8thwall",
"token_count": 134
} | 5 |
// Copyright (c) 2021 8th Wall, Inc.
/* globals XR8 XRExtras THREE */
const imageTargetPipelineModule = () => {
const modelFile = 'jellyfish-model.glb'
const videoFile = 'jellyfish-video.mp4'
const loader = new THREE.GLTFLoader() // This comes from GLTFLoader.js.
let model
let video, videoObj
// Popul... | 8thwall/web/examples/threejs/flyer/index.js/0 | {
"file_path": "8thwall/web/examples/threejs/flyer/index.js",
"repo_id": "8thwall",
"token_count": 2027
} | 6 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>8th Wall Web: A-Frame</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>
<!-- XR Extras - provides utilities ... | 8thwall/web/gettingstarted/aframe/index.html/0 | {
"file_path": "8thwall/web/gettingstarted/aframe/index.html",
"repo_id": "8thwall",
"token_count": 1109
} | 7 |
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=0.75, user-scalable=yes">
<title>8th Wall Web: three.js</title>
<!-- THREE.js must be supplied -->
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<!-- XR Extras - p... | 8thwall/web/gettingstarted/threejs/index.html/0 | {
"file_path": "8thwall/web/gettingstarted/threejs/index.html",
"repo_id": "8thwall",
"token_count": 394
} | 8 |
{
"name": "xrextras",
"version": "0.1.0",
"description": "",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack",
"dev": "webpack server --devtool eval --mode development",
"clean": "rm -r dist/*"
},
"keywords": [],
"author": "",
"lic... | 8thwall/web/xrextras/package.json/0 | {
"file_path": "8thwall/web/xrextras/package.json",
"repo_id": "8thwall",
"token_count": 323
} | 9 |
<div id="almostthereContainer" class="absolute-fill">
<!--Not on mobile -->
<div id="error_msg_device" class="hidden">
<div class="error-text-outer-container">
<div class="error-text-container error-margin-top-20">
<div id="qrcode"></div>
<br />
<div class="desktop-message">
... | 8thwall/web/xrextras/src/almosttheremodule/almost-there-module.html/0 | {
"file_path": "8thwall/web/xrextras/src/almosttheremodule/almost-there-module.html",
"repo_id": "8thwall",
"token_count": 2132
} | 10 |
import {initMediaPreview, removeMediaPreview} from './media-preview'
import {initRecordButton, removeRecordButton, setCaptureMode} from './record-button'
import {configure} from './capture-config'
const create = () => ({
initMediaPreview,
removeMediaPreview,
initRecordButton,
removeRecordButton,
configure,
... | 8thwall/web/xrextras/src/mediarecorder/mediarecorder.js/0 | {
"file_path": "8thwall/web/xrextras/src/mediarecorder/mediarecorder.js",
"repo_id": "8thwall",
"token_count": 183
} | 11 |
import '../fonts/fonts.css'
import './runtime-error-module.css'
import html from './runtime-error-module.html'
let runtimeerrorModule = null
const RuntimeErrorFactory = () => {
if (!runtimeerrorModule) {
runtimeerrorModule = create()
}
return runtimeerrorModule
}
const create = () => {
let started = fa... | 8thwall/web/xrextras/src/runtimeerrormodule/runtime-error-module.js/0 | {
"file_path": "8thwall/web/xrextras/src/runtimeerrormodule/runtime-error-module.js",
"repo_id": "8thwall",
"token_count": 561
} | 12 |
## 一、网络监听接口
- ononline:网络连通时触发
- onoffline:网络断开时触发
```js
window.addEventListener("online", function(){});
window.addEventListener("offline", function(){});
```
## 二、全屏接口
全屏操作的主要方法和属性:
**1、requestFullScreen(); 开启全屏显示**
但是不同的浏览器需要添加的前缀不同:
chrome:webkit , firefox:moz ,IE:ms
于是就变成了 `webkitRequestFullScreen... | Daotin/Web/01-HTML/02-HTML5/03-网络监听,全屏,文件读取,地理定位接口,应用程序缓存.md/0 | {
"file_path": "Daotin/Web/01-HTML/02-HTML5/03-网络监听,全屏,文件读取,地理定位接口,应用程序缓存.md",
"repo_id": "Daotin",
"token_count": 5689
} | 13 |
# BFC的概念及案例
## BFC的概念
BFC(Block formatting context)直译为“块级格式化上下文”。它是一个独立的渲染区域,只有Block-level box(块)参与, 它规定了内部的Block-level Box如何布局,并且与这个区域外部毫不相干。
### BFC的布局规则
- 内部的Box会在垂直方向,一个接一个地放置。
- Box垂直方向的距离由margin决定。属于同一个BFC的两个相邻Box的margin会发生重叠
- 每个元素的margin box的左边, 与包含块border box的左边相接触
- BFC的区域不会与float box重叠。
- BFC就是页面上的一个隔离的独... | Daotin/Web/02-CSS/01-CSS基础/BFC的概念,清除浮动.md/0 | {
"file_path": "Daotin/Web/02-CSS/01-CSS基础/BFC的概念,清除浮动.md",
"repo_id": "Daotin",
"token_count": 5352
} | 14 |
### 方法一:使用line-height
示例:
```html
<style>
div {
width: 500px;
height: 300px;
border: 1px solid red;
text-align: center;
line-height: 300px;
}
img {
vertical-align: middle;
}
</style>
</head>
<body>
<div>
<img src="1.png" alt="">
</div>
</body>
```
... | Daotin/Web/02-CSS/01-CSS基础/行内块元素水平垂直居中的方法.md/0 | {
"file_path": "Daotin/Web/02-CSS/01-CSS基础/行内块元素水平垂直居中的方法.md",
"repo_id": "Daotin",
"token_count": 587
} | 15 |
## 1、变量的声明和初始化
```javascript
var number; // 变量的声明,没有赋值
var name = "Daotin"; // 变量的初始化
```
## 2、命名规则(驼峰命名)
- 变量命名必须以**字母**或是下标符号 "_" 或者 "$" 为开头。
- 变量名长度不能超过 255 个字符。
- 变量名中不允许使用空格,首个字不能为数字。
- 不用使用脚本语言中保留的关键字及保留符号作为变量名。
- 变量名区分大小写。
- 汉语可以作为变量名。但是不建议使用!
## 3、数据类型
**查看数据类型的方法:**` typeof name... | Daotin/Web/03-JavaScript/01-JavaScript基础知识/02-变量.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/01-JavaScript基础知识/02-变量.md",
"repo_id": "Daotin",
"token_count": 3275
} | 16 |
## 一、什么是cookie
cookie 就是一种特殊的字符串。是存放于**指定网站的指定浏览器下面的文件夹下**。用来帮助页面记录用户操作(会话跟踪技术)
**cookie可以跨越一个域名下的多个网页,但不能跨越多个域名使用。**
cookie不支持本地文件,只能是网站下文件。
cookie 需要注意的属性有:名称,内容,域名,路径,创建时间,到期时间。
## 二、cookie 的创建与保存
使用document对象的cookie属性,cookie是以键值对(key=value)字符串的方式保存在文件里的。
```js
// 定义语法 document.cookie = "名称=内容"
document.coo... | Daotin/Web/03-JavaScript/02-DOM/09-cookie增删改查.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/02-DOM/09-cookie增删改查.md",
"repo_id": "Daotin",
"token_count": 5992
} | 17 |
我们有时候逛网站的时候,有的图片网站的图片排列**在纵向上是错落有致的**,并不是高度统一的,如下图,这个效果是怎么做的呢?(下图是我截取花瓣网站的图片)

**解决思路:**
解决的思路就是先确定显示的列数,每一列都是一个li标签,然后图片是一张一张生成放上去的,在放上去的时候,判断四列中哪一个的高度最矮,然后在最矮的位置的li中插入图片,就这样一张一张插入,直到插入所有的图片,就显示这样的瀑布流。
**代码:**
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-... | Daotin/Web/03-JavaScript/02-DOM/案例02:瀑布流图片.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/02-DOM/案例02:瀑布流图片.md",
"repo_id": "Daotin",
"token_count": 3259
} | 18 |
面向对象
1、以后写代码不能有零散的代码。代码都在对象或者函数中。
2、常见的写法:
```js
var Method = (function(){
return {
fn: function() {
}
};
})();
// 调用的时候
Method.fn();
```
拖拽案例:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-wid... | Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例02:DIV拖拽.md/0 | {
"file_path": "Daotin/Web/03-JavaScript/04-JavaScript高级知识/案例02:DIV拖拽.md",
"repo_id": "Daotin",
"token_count": 3050
} | 19 |
## 操作数据库
### 新增数据库
> `create database 数据库名称 [库选项];` // create dabase mydb charset utf8;
### 查询数据库
> `show databases;` // 查看所有数据库
>
> `show databases like pattern; ` //查看指定部分的数据库(模糊匹配)show databases like 'my%
>
> `show create database 数据库名称;` // 查看数据库的创建语句 show create database mydb;
### 更新数据库
> `alter database... | Daotin/Web/05-PHP&数据库/02-mysql的增删改查快速查找.md/0 | {
"file_path": "Daotin/Web/05-PHP&数据库/02-mysql的增删改查快速查找.md",
"repo_id": "Daotin",
"token_count": 2082
} | 20 |
## 一、Less简介
LESS 是一种动态的样式表语言,通过简洁明了的语法定义,使编写 CSS 的工作变得非常简单,本质上,LESS 包含一套自定义的语法及一个解析器。

## 二、less 安装
1、下载安装 node.js 环境。(官网:https://nodejs.org/zh-cn/)
2、安装完成后验证 node 环境是否安装成功。
在命令行中输入:`node -v ` 出现 node 的版本号表示安装成功。
3、安装 less 工具(需要联网)。
在命令行中输入:`npm install -g less` 即可下载安装。
4、安装后验证 less 是否... | Daotin/Web/07-移动Web开发/08-Less.md/0 | {
"file_path": "Daotin/Web/07-移动Web开发/08-Less.md",
"repo_id": "Daotin",
"token_count": 2876
} | 21 |
@baseColor: #e92322;
/* 头部块 */
.wjs-header {
height: 50px;
line-height: 50px;
border-bottom: 1px solid #ccc;
.row {
height: 100%;
text-align: center;
> div:nth-of-type(-n+3) {
border-right: 1px solid #ccc;
}
.code {
display: block;
... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/css/wjs-index.less/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/css/wjs-index.less",
"repo_id": "Daotin",
"token_count": 5825
} | 22 |
// Rotated & Flipped Icons
// -------------------------
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
.@{fa-css-prefix... | Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/rotated-flipped.less/0 | {
"file_path": "Daotin/Web/07-移动Web开发/案例源码/03-微金所/lib/font-awesome-4.7.0/less/rotated-flipped.less",
"repo_id": "Daotin",
"token_count": 290
} | 23 |
## 一、ECMAScript 5 严格模式
### 1、概述
除了正常运行模式,ECMAscript 5添加了第二种运行模式:"严格模式"(strict mode)。顾名思义,这种模式使得Javascript在更严格的条件下运行。
### 2、目的
- 消除Javascript语法的一些不合理、不严谨之处,减少一些怪异行为;
- 消除代码运行的一些不安全之处,保证代码运行的安全;
- 提高编译器效率,增加运行速度;
- 为未来新版本的Javascript做好铺垫。
"严格模式"体现了Javascript更合理、更安全、更严谨的发展方向,包括IE 10在内的主流浏览器,都已经支持它,许多大项目已经... | Daotin/Web/08-ES6语法/01-ES5严格模式.md/0 | {
"file_path": "Daotin/Web/08-ES6语法/01-ES5严格模式.md",
"repo_id": "Daotin",
"token_count": 2298
} | 24 |
## 1、学习资源
MongoDB学习教程:https://piaosanlang.gitbooks.io/mongodb/content/
MongoDB教程:http://www.mongodb.org.cn/tutorial/
## 2、关于MongoDB
MongoDB是面向文档型的数据库。
在MySql里面我们是一个个的数据表,但是在MongoDB里面是一个个的集合,集合里面是一个个的文档。
在MySql里面的数据表中是一行一行的数据,但是在MongoDB里面的文档中是一个对象的集合,每个对象类似一行的数据。
MongoDB是以键值对的形式保存数据的。
## 3、MongoDB的安装
略。... | Daotin/Web/10-Node.js/04-MongoDB基本增删改查.md/0 | {
"file_path": "Daotin/Web/10-Node.js/04-MongoDB基本增删改查.md",
"repo_id": "Daotin",
"token_count": 5573
} | 25 |
## 项目github仓库
[vue-demo](https://github.com/Daotin/vue-demo)
## vue项目结构

## webpack+vue项目代码结构:

## 简要描述
main.js加载主组件App.js,App.js又是一个空的组件,里面主要放三部分:
Entry组件,Login组件,Register组件。
Entry组件下包括Home,List,Detail,ShoppingCar子组件,这些子组件有会包含Components文件夹下的更小的组件。
Login组件,显示登录界面。
... | Daotin/Web/12-Vue/12-vue项目结构.md/0 | {
"file_path": "Daotin/Web/12-Vue/12-vue项目结构.md",
"repo_id": "Daotin",
"token_count": 380
} | 26 |
## 一、react内容插槽
定义一个slot组件,然后往这个组件中添加数据,父组件调用这个子组件:
```jsx
import { Slot } from './Slot';
ReactDOM.render(<Slot>我是插入的内容</Slot></Slot>, document.getElementById('app'));
```
slot组件:通过`this.props.children`获取插入的内容。
```jsx
export class Slot extends React.Component {
constructor() {
super();
}
render... | Daotin/Web/13-React/03-react内容插槽,生命周期函数.md/0 | {
"file_path": "Daotin/Web/13-React/03-react内容插槽,生命周期函数.md",
"repo_id": "Daotin",
"token_count": 929
} | 27 |
## 一、组件相关知识
### 1、*ngIf
`*ngIf` 用来控制一个元素是否显示。
示例:
```typescript
// home.component.html
<button *ngIf="isShow">按钮</button>
// home.component.ts
isShow: boolean = false;
```
### 2、*ngFor
`*ngFor`用来循环遍历一个数组。
示例:
```typescript
// home.component.html
<ul>
<li *ngFor="let item of list;let i = index">{{i}}, {{i... | Daotin/Web/14-Angular/02-组件相关,事件绑定,数据双向绑定,管道.md/0 | {
"file_path": "Daotin/Web/14-Angular/02-组件相关,事件绑定,数据双向绑定,管道.md",
"repo_id": "Daotin",
"token_count": 1263
} | 28 |
/** 文章目录 */
INSERT INTO article_category(category_id, category_name, create_date, category_delete) VALUES (0, '所有文章', '2017-12-12 18:11:34', 0);
/** 博客demo */
INSERT INTO blog_details(blog_id, blog_title, blog_author, blog_date, blog_read, blog_summary, blog_html_content, blog_md_content, blog_label, blog_delete, blo... | Humsen/web/docs/数据库部署/第2步 - 初始化数据.sql/0 | {
"file_path": "Humsen/web/docs/数据库部署/第2步 - 初始化数据.sql",
"repo_id": "Humsen",
"token_count": 1289
} | 29 |
/**
* vo是view 展示层
*
* @author 何明胜
*
* 2017年10月18日
*/
package pers.husen.web.bean.vo; | Humsen/web/web-core/src/pers/husen/web/bean/vo/package-info.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/bean/vo/package-info.java",
"repo_id": "Humsen",
"token_count": 56
} | 30 |
package pers.husen.web.common.helper;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* 返回程序调用的堆栈轨迹
*
* @author 何明胜
*
* 2017年10月22日
*/
public class StackTrace2Str {
/**
* 返回 e.printStackTrace()的内容
* @param e
* @return
*/
public static String exceptionStackTrace2Str (Exception e) {
Strin... | Humsen/web/web-core/src/pers/husen/web/common/helper/StackTrace2Str.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/common/helper/StackTrace2Str.java",
"repo_id": "Humsen",
"token_count": 249
} | 31 |
package pers.husen.web.dao;
import pers.husen.web.bean.vo.ReleaseFeatureVo;
/**
* 新版本特性接口
*
* @author 何明胜
*
* 2017年10月17日
*/
public interface ReleaseFeatureDao {
/**
* 插入新的版本特性
*
* @param releaseFeatureVo
* @return
*/
public int insertReleaseFeature(ReleaseFeatureVo releaseFeatureVo);
/**
* 查询... | Humsen/web/web-core/src/pers/husen/web/dao/ReleaseFeatureDao.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dao/ReleaseFeatureDao.java",
"repo_id": "Humsen",
"token_count": 301
} | 32 |
package pers.husen.web.dbutil.assist;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
/**
* 博客文章工具类
*
* @author 何明胜
*
* 2017... | Humsen/web/web-core/src/pers/husen/web/dbutil/assist/TypeTransformUtils.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/dbutil/assist/TypeTransformUtils.java",
"repo_id": "Humsen",
"token_count": 2316
} | 33 |
package pers.husen.web.service;
import java.util.ArrayList;
import pers.husen.web.bean.vo.FileDownloadVo;
import pers.husen.web.dao.FileDownloadDao;
import pers.husen.web.dao.impl.FileDownloadDaoImpl;
/**
* @author 何明胜
*
* 2017年9月29日
*/
public class FileDownloadSvc implements FileDownloadDao{
private st... | Humsen/web/web-core/src/pers/husen/web/service/FileDownloadSvc.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/service/FileDownloadSvc.java",
"repo_id": "Humsen",
"token_count": 365
} | 34 |
package pers.husen.web.servlet.download;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... | Humsen/web/web-core/src/pers/husen/web/servlet/download/FileDownloadSvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/download/FileDownloadSvt.java",
"repo_id": "Humsen",
"token_count": 898
} | 35 |
package pers.husen.web.servlet.userinfo;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... | Humsen/web/web-core/src/pers/husen/web/servlet/userinfo/UsersQuerySvt.java/0 | {
"file_path": "Humsen/web/web-core/src/pers/husen/web/servlet/userinfo/UsersQuerySvt.java",
"repo_id": "Humsen",
"token_count": 703
} | 36 |
@charset "UTF-8";
.footer-div {
margin-top: 20px;
}
.husen-name {
font-family: FZShuTi, LiSu, STCaiyun;
}
.web-pc-nav{
text-align: center;
margin-top: 30px;
}
/* #fh5co-main-menu a {
font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif !important;
font-size: 20px !important;
} */ | Humsen/web/web-mobile/WebContent/css/navigation/left-menu-bar.css/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/css/navigation/left-menu-bar.css",
"repo_id": "Humsen",
"token_count": 148
} | 37 |
/**
* 网站顶部导航栏
*
* @author 何明胜
*
* 2017年10月18日
*/
$(document).ready(function(){
loadAccessStatistics();
//绑定切换主题事件
$('.choose-theme').children('button').click(nextThemeClick);
});
/**
* 加载当前网站访问统计
*
* @returns
*/
function loadAccessStatistics(){
$.ajax({
type : 'POST',
url : '/accessAtatistics.h... | Humsen/web/web-mobile/WebContent/js/navigation/topbar.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/js/navigation/topbar.js",
"repo_id": "Humsen",
"token_count": 735
} | 38 |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
... | Humsen/web/web-mobile/WebContent/plugins/jquery/js/jquery.easing.1.3.js/0 | {
"file_path": "Humsen/web/web-mobile/WebContent/plugins/jquery/js/jquery.easing.1.3.js",
"repo_id": "Humsen",
"token_count": 3613
} | 39 |
[flake8]
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
per... | OCA/web/.flake8/0 | {
"file_path": "OCA/web/.flake8",
"repo_id": "OCA",
"token_count": 133
} | 40 |
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
# Maybe reactivate thi... | OCA/web/.pre-commit-config.yaml/0 | {
"file_path": "OCA/web/.pre-commit-config.yaml",
"repo_id": "OCA",
"token_count": 2267
} | 41 |
========================
web_action_conditionable
========================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source dig... | OCA/web/web_action_conditionable/README.rst/0 | {
"file_path": "OCA/web/web_action_conditionable/README.rst",
"repo_id": "OCA",
"token_count": 1240
} | 42 |
More powerful and easy to use search, especially for related fields.
| OCA/web/web_advanced_search/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_advanced_search/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 14
} | 43 |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2017-2018 Jairo Llopis <jairo.llopis@tecnativa.com>
Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<templates>
<t t-inherit="web.CustomFilterItem" t-inherit-mode="extensi... | OCA/web/web_advanced_search/static/src/search/filter_menu/custom_filter_item.xml/0 | {
"file_path": "OCA/web/web_advanced_search/static/src/search/filter_menu/custom_filter_item.xml",
"repo_id": "OCA",
"token_count": 456
} | 44 |
To use this module, you need to install some other addon that uses it, as it
doesn't provide any end-user functionality.
| OCA/web/web_calendar_slot_duration/readme/USAGE.rst/0 | {
"file_path": "OCA/web/web_calendar_slot_duration/readme/USAGE.rst",
"repo_id": "OCA",
"token_count": 29
} | 45 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_chatter_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-06 20:08+0000\n"
"Last-Translator: Ediz Duman <neps1192@gmail.com>\n"
"Language-Team:... | OCA/web/web_chatter_position/i18n/tr.po/0 | {
"file_path": "OCA/web/web_chatter_position/i18n/tr.po",
"repo_id": "OCA",
"token_count": 518
} | 46 |
White color is omitted in the addition operation to support images without alpha channel.
| OCA/web/web_company_color/readme/ROADMAP.rst/0 | {
"file_path": "OCA/web/web_company_color/readme/ROADMAP.rst",
"repo_id": "OCA",
"token_count": 16
} | 47 |
This module will show a confirmation dialog when the user selects the
`Duplicate` option from the `Action` dropdown in the standard form view.
| OCA/web/web_copy_confirm/readme/DESCRIPTION.rst/0 | {
"file_path": "OCA/web/web_copy_confirm/readme/DESCRIPTION.rst",
"repo_id": "OCA",
"token_count": 33
} | 48 |
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dark_mode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: zh\n"
"MIME-Version: 1.0\n"
"Content-Ty... | OCA/web/web_dark_mode/i18n/zh.po/0 | {
"file_path": "OCA/web/web_dark_mode/i18n/zh.po",
"repo_id": "OCA",
"token_count": 410
} | 49 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.