Initial commit: WordPress wp-content (themes, plugins, languages)

- Theme: momentry (custom theme with REST API routes)
- Plugins: code-snippets (contains all API proxies)
- Languages: zh_TW translations
- Excludes: cache, backups, uploads, logs
This commit is contained in:
OpenCode
2026-05-29 19:07:56 +08:00
commit 09ef1f000f
6521 changed files with 867163 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import React from 'react'
import classnames from 'classnames'
import type { HTMLAttributes } from 'react'
export interface ImportCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
children: React.ReactNode
className?: string
variant?: 'default' | 'controls'
}
export const ImportCard = React.forwardRef<HTMLDivElement, ImportCardProps>(({
children,
className,
variant = 'default',
style,
...props
}, ref) => {
const cardStyle: React.CSSProperties = {
backgroundColor: '#ffffff',
padding: '25px',
borderRadius: '5px',
border: '1px solid #e0e0e0',
marginBottom: '10px',
width: '100%',
...style
}
return (
<div
ref={ref}
className={classnames(
{
'import-controls': variant === 'controls'
},
className
)}
style={cardStyle}
{...props}
>
{children}
</div>
)
})
ImportCard.displayName = 'ImportCard'

View File

@@ -0,0 +1,33 @@
import React from 'react'
import type { HTMLAttributes } from 'react'
export interface ImportSectionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
children: React.ReactNode
active?: boolean
className?: string
style?: React.CSSProperties
}
export const ImportSection: React.FC<ImportSectionProps> = ({
children,
active = false,
className,
style,
...props
}) => {
const sectionStyle: React.CSSProperties = {
display: active ? 'block' : 'none',
paddingTop: 0,
...style
}
return (
<div
className={className}
style={sectionStyle}
{...props}
>
{children}
</div>
)
}

View File

@@ -0,0 +1,4 @@
export { ImportCard } from './ImportCard'
export type { ImportCardProps } from './ImportCard'
export { ImportSection } from './ImportSection'
export type { ImportSectionProps } from './ImportSection'

View File

@@ -0,0 +1 @@
export * from './components'