code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
import { mergeAttributes, Node } from "@tiptap/core" import { Plugin } from "@tiptap/pm/state" import { Decoration, DecorationSet } from "@tiptap/pm/view" import { getCellsInColumn, isRowSelected, selectRow } from "./utils" export interface TableCellOptions { HTMLAttributes: Record<string, any> } export const TableCell = Node.create<TableCellOptions>({ name: "tableCell", content: "block+", tableRole: "cell", isolating: true, addOptions() { return { HTMLAttributes: {}, } }, parseHTML() { return [{ tag: "td" }] }, renderHTML({ HTMLAttributes }) { return [ "td", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0, ] }, addAttributes() { return { colspan: { default: 1, parseHTML: (element) => { const colspan = element.getAttribute("colspan") const value = colspan ? parseInt(colspan, 10) : 1 return value }, }, rowspan: { default: 1, parseHTML: (element) => { const rowspan = element.getAttribute("rowspan") const value = rowspan ? parseInt(rowspan, 10) : 1 return value }, }, colwidth: { default: null, parseHTML: (element) => { const colwidth = element.getAttribute("colwidth") const value = colwidth ? [parseInt(colwidth, 10)] : null return value }, }, style: { default: null, }, } }, addProseMirrorPlugins() { const { isEditable } = this.editor return [ new Plugin({ props: { decorations: (state) => { if (!isEditable) { return DecorationSet.empty } const { doc, selection } = state const decorations: Decoration[] = [] const cells = getCellsInColumn(0)(selection) if (cells) { cells.forEach(({ pos }: { pos: number }, index: number) => { decorations.push( Decoration.widget(pos + 1, () => { const rowSelected = isRowSelected(index)(selection) let className = "grip-row absolute -left-5 top-[30%] bg-white border rounded-sm w-4 h-4 cursor-pointer z-10" if (rowSelected) { className += " selected" } if (index === 0) { className += " first" } if (index === cells.length - 1) { className += " last" } const grip = document.createElement("Button") grip.className = className grip.addEventListener("mousedown", (event) => { event.preventDefault() event.stopImmediatePropagation() this.editor.view.dispatch( selectRow(index)(this.editor.state.tr) ) }) return grip }) ) }) } return DecorationSet.create(doc, decorations) }, }, }), ] }, })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/cell.ts
TypeScript
agpl-3.0
3,301
import TiptapTableHeader from "@tiptap/extension-table-header" import { Plugin } from "@tiptap/pm/state" import { Decoration, DecorationSet } from "@tiptap/pm/view" import { getCellsInRow, isColumnSelected, selectColumn } from "./utils" export type TableHeaderOptions = { HTMLAttributes: Record<string, any> } export const TableHeader = TiptapTableHeader.extend<TableHeaderOptions>({ addAttributes() { return { HTMLAttributes: {}, colspan: { default: 1, }, rowspan: { default: 1, }, colwidth: { default: null, parseHTML: (element) => { const colwidth = element.getAttribute("colwidth") const value = colwidth ? colwidth.split(",").map((item) => parseInt(item, 10)) : null return value }, }, style: { default: null, }, } }, addProseMirrorPlugins() { const { isEditable } = this.editor return [ new Plugin({ props: { decorations: (state) => { if (!isEditable) { return DecorationSet.empty } const { doc, selection } = state const decorations: Decoration[] = [] const cells = getCellsInRow(0)(selection) if (cells) { cells.forEach(({ pos }: { pos: number }, index: number) => { decorations.push( Decoration.widget(pos + 1, () => { const colSelected = isColumnSelected(index)(selection) let className = "grip-column align-middle absolute left-1/2 bg-white border rounded-sm w-4 h-4 -top-5 cursor-pointer z-10" if (colSelected) { className += " selected" } if (index === 0) { className += " first" } if (index === cells.length - 1) { className += " last" } const grip = document.createElement("Button") grip.className = className grip.addEventListener("mousedown", (event) => { event.preventDefault() event.stopImmediatePropagation() this.editor.view.dispatch( selectColumn(index)(this.editor.state.tr) ) }) return grip }) ) }) } return DecorationSet.create(doc, decorations) }, }, }), ] }, }) export default TableHeader
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/header.ts
TypeScript
agpl-3.0
2,731
import { TableHeader } from "./header" import type { TableHeaderOptions } from "./header" import { TableRow } from "./row" import type { TableRowOptions } from "@tiptap/extension-table-row" import { TableCell } from "./cell" import type { TableCellOptions } from "./cell" import { Table } from "./table" import type { TableOptions } from "./table" export { Table, TableOptions, TableCell, TableCellOptions, TableRow, TableRowOptions, TableHeader, TableHeaderOptions, TableCellBackground, TableCellBackgroundOptions, }
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/index.ts
TypeScript
agpl-3.0
542
import TiptapTableRow from "@tiptap/extension-table-row" export const TableRow = TiptapTableRow.extend({ allowGapCursor: false, }) export default TableRow
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/row.ts
TypeScript
agpl-3.0
159
import TiptapTable from "@tiptap/extension-table" import TableRow from "./row" import TableHeader from "./header" import { TableCell } from "./cell" import type { TableRowOptions } from "@tiptap/extension-table-row" import type { TableHeaderOptions } from "./header" import type { TableCellOptions } from "./cell" import { GeneralOptions } from "@/type" export interface TableOptions extends GeneralOptions<TableOptions> { HTMLAttributes: Record<string, any> resizable: boolean handleWidth: number cellMinWidth: number lastColumnResizable: boolean allowTableNodeSelection: boolean /** options for table rows */ tableRow: Partial<TableRowOptions> /** options for table headers */ tableHeader: Partial<TableHeaderOptions> /** options for table cells */ tableCell: Partial<TableCellOptions> /** options for table cell background */ } export const Table = TiptapTable.extend<TableOptions>({ addOptions() { return { ...this.parent?.(), HTMLAttributes: {}, resizable: true, lastColumnResizable: true, allowTableNodeSelection: false, } }, addExtensions() { return [ TableRow.configure(this.options.tableRow), TableHeader.configure(this.options.tableHeader), TableCell.configure(this.options.tableCell), ] }, }) export default Table
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/table.ts
TypeScript
agpl-3.0
1,326
import { findParentNode } from "@tiptap/core" import { EditorState, Selection, Transaction } from "@tiptap/pm/state" import { CellSelection, TableMap } from "@tiptap/pm/tables" import { Node, ResolvedPos } from "@tiptap/pm/model" import { Editor } from "@tiptap/core" import { Table } from "./table" import { EditorView } from "@tiptap/pm/view" export const isRectSelected = (rect: any) => (selection: CellSelection) => { const map = TableMap.get(selection.$anchorCell.node(-1)) const start = selection.$anchorCell.start(-1) const cells = map.cellsInRect(rect) const selectedCells = map.cellsInRect( map.rectBetween( selection.$anchorCell.pos - start, selection.$headCell.pos - start ) ) for (let i = 0, count = cells.length; i < count; i += 1) { if (selectedCells.indexOf(cells[i]) === -1) { return false } } return true } export const findTable = (selection: Selection) => findParentNode( (node) => node.type.spec.tableRole && node.type.spec.tableRole === "table" )(selection) export const isCellSelection = (selection: any) => selection instanceof CellSelection export const isColumnSelected = (columnIndex: number) => (selection: any) => { if (isCellSelection(selection)) { const map = TableMap.get(selection.$anchorCell.node(-1)) return isRectSelected({ left: columnIndex, right: columnIndex + 1, top: 0, bottom: map.height, })(selection) } return false } export const isRowSelected = (rowIndex: number) => (selection: any) => { if (isCellSelection(selection)) { const map = TableMap.get(selection.$anchorCell.node(-1)) return isRectSelected({ left: 0, right: map.width, top: rowIndex, bottom: rowIndex + 1, })(selection) } return false } export const isTableSelected = (selection: any) => { if (isCellSelection(selection)) { const map = TableMap.get(selection.$anchorCell.node(-1)) return isRectSelected({ left: 0, right: map.width, top: 0, bottom: map.height, })(selection) } return false } export const getCellsInColumn = (columnIndex: number | number[]) => (selection: Selection) => { const table = findTable(selection) if (table) { const map = TableMap.get(table.node) const indexes = Array.isArray(columnIndex) ? columnIndex : Array.from([columnIndex]) return indexes.reduce((acc, index) => { if (index >= 0 && index <= map.width - 1) { const cells = map.cellsInRect({ left: index, right: index + 1, top: 0, bottom: map.height, }) return acc.concat( cells.map((nodePos) => { const node = table.node.nodeAt(nodePos) const pos = nodePos + table.start return { pos, start: pos + 1, node } }) ) } return acc }, [] as { pos: number; start: number; node: Node | null | undefined }[]) } return null } export const getCellsInRow = (rowIndex: number | number[]) => (selection: Selection) => { const table = findTable(selection) if (table) { const map = TableMap.get(table.node) const indexes = Array.isArray(rowIndex) ? rowIndex : Array.from([rowIndex]) return indexes.reduce((acc, index) => { if (index >= 0 && index <= map.height - 1) { const cells = map.cellsInRect({ left: 0, right: map.width, top: index, bottom: index + 1, }) return acc.concat( cells.map((nodePos) => { const node = table.node.nodeAt(nodePos) const pos = nodePos + table.start return { pos, start: pos + 1, node } }) ) } return acc }, [] as { pos: number; start: number; node: Node | null | undefined }[]) } return null } export const getCellsInTable = (selection: Selection) => { const table = findTable(selection) if (table) { const map = TableMap.get(table.node) const cells = map.cellsInRect({ left: 0, right: map.width, top: 0, bottom: map.height, }) return cells.map((nodePos) => { const node = table.node.nodeAt(nodePos) const pos = nodePos + table.start return { pos, start: pos + 1, node } }) } return null } export const findParentNodeClosestToPos = ( $pos: ResolvedPos, predicate: (node: Node) => boolean ) => { for (let i = $pos.depth; i > 0; i -= 1) { const node = $pos.node(i) if (predicate(node)) { return { pos: i > 0 ? $pos.before(i) : 0, start: $pos.start(i), depth: i, node, } } } return null } export const findCellClosestToPos = ($pos: ResolvedPos) => { const predicate = (node: Node) => node.type.spec.tableRole && /cell/i.test(node.type.spec.tableRole) return findParentNodeClosestToPos($pos, predicate) } const select = (type: "row" | "column") => (index: number) => (tr: Transaction) => { const table = findTable(tr.selection) const isRowSelection = type === "row" if (table) { const map = TableMap.get(table.node) // Check if the index is valid if (index >= 0 && index < (isRowSelection ? map.height : map.width)) { const left = isRowSelection ? 0 : index const top = isRowSelection ? index : 0 const right = isRowSelection ? map.width : index + 1 const bottom = isRowSelection ? index + 1 : map.height const cellsInFirstRow = map.cellsInRect({ left, top, right: isRowSelection ? right : left + 1, bottom: isRowSelection ? top + 1 : bottom, }) const cellsInLastRow = bottom - top === 1 ? cellsInFirstRow : map.cellsInRect({ left: isRowSelection ? left : right - 1, top: isRowSelection ? bottom - 1 : top, right, bottom, }) const head = table.start + cellsInFirstRow[0] const anchor = table.start + cellsInLastRow[cellsInLastRow.length - 1] const $head = tr.doc.resolve(head) const $anchor = tr.doc.resolve(anchor) // @ts-ignore return tr.setSelection(new CellSelection($anchor, $head)) } } return tr } export const selectColumn = select("column") export const selectRow = select("row") export const selectTable = (tr: Transaction) => { const table = findTable(tr.selection) if (table) { const { map } = TableMap.get(table.node) if (map && map.length) { const head = table.start + map[0] const anchor = table.start + map[map.length - 1] const $head = tr.doc.resolve(head) const $anchor = tr.doc.resolve(anchor) // @ts-ignore return tr.setSelection(new CellSelection($anchor, $head)) } } return tr } export const analyzeCellSelection = (editor: Editor) => { const selection = editor.state.selection as CellSelection let cellCount = 0 let mergedCellCount = 0 selection.forEachCell((cell) => { cellCount++ if (cell.attrs.colspan > 1 || cell.attrs.rowspan > 1) { mergedCellCount++ } }) return { isRowSelection: selection.isRowSelection(), isColSelection: selection.isColSelection(), cellCount, mergedCellCount, } } export const isTableCellSelected = ({ editor, view, state, from, }: { editor: Editor view: EditorView state: EditorState from: number }) => { const domAtPos = view.domAtPos(from).node as HTMLElement const nodeDOM = view.nodeDOM(from) as HTMLElement const node = nodeDOM || domAtPos if (!editor.isActive(Table.name) || !node) { return false } if (isTableSelected(state.selection)) return true let container = node while (container && !["TD", "TH"].includes(container.tagName)) { container = container.parentElement! } const gripColumn = container && container.querySelector && container.querySelector("button.grip-column.selected") if (gripColumn) return false const gripRow = container && container.querySelector && container.querySelector("button.grip-row.selected") if (gripRow) return false // Get the number of selected cells const selection = state.selection if (selection instanceof CellSelection) { // If it is CellSelection, the cell is selected let cellCount = 0 selection.forEachCell((cell) => { cellCount++ }) // Returns true if the number of selected cells is greater than 1 return cellCount > 0 } return false } export const isColumnGripSelected = ({ editor, view, state, from, }: { editor: Editor view: EditorView state: EditorState from: number }) => { const domAtPos = view.domAtPos(from).node as HTMLElement const nodeDOM = view.nodeDOM(from) as HTMLElement const node = nodeDOM || domAtPos if ( !editor.isActive(Table.name) || !node || isTableSelected(state.selection) ) { return false } let container = node while (container && !["TD", "TH"].includes(container.tagName)) { container = container.parentElement! } const gripColumn = container && container.querySelector && container.querySelector("button.grip-column.selected") return !!gripColumn } export const isRowGripSelected = ({ editor, view, state, from, }: { editor: Editor view: EditorView state: EditorState from: number }) => { const domAtPos = view.domAtPos(from).node as HTMLElement const nodeDOM = view.nodeDOM(from) as HTMLElement const node = nodeDOM || domAtPos if ( !editor.isActive(Table.name) || !node || isTableSelected(state.selection) ) { return false } let container = node while (container && !["TD", "TH"].includes(container.tagName)) { container = container.parentElement! } const gripRow = container && container.querySelector && container.querySelector("button.grip-row.selected") return !!gripRow }
2302_79757062/drive
frontend/src/components/DocEditor/extensions/table/utils.ts
TypeScript
agpl-3.0
10,145
import { Extension } from "@tiptap/core" export interface TextAlignOptions { /** * The types where the text align attribute can be applied. * @default [] * @example ['heading', 'paragraph'] */ types: string[] /** * The alignments which are allowed. * @default ['left', 'center', 'right', 'justify'] * @example ['left', 'right'] */ alignments: string[] /** * The default alignment. * @default 'left' * @example 'center' */ defaultAlignment: string } declare module "@tiptap/core" { interface Commands<ReturnType> { textAlign: { /** * Set the text align attribute * @param alignment The alignment * @example editor.commands.setTextAlign('left') */ setTextAlign: (alignment: string) => ReturnType /** * Unset the text align attribute * @example editor.commands.unsetTextAlign() */ unsetTextAlign: () => ReturnType } } } /** * This extension allows you to align text. * @see https://www.tiptap.dev/api/extensions/text-align */ export const TextAlign = Extension.create<TextAlignOptions>({ name: "textAlign", addOptions() { return { types: [], alignments: ["left", "center", "right", "justify"], defaultAlignment: "left", } }, addGlobalAttributes() { return [ { types: this.options.types, attributes: { textAlign: { default: this.options.defaultAlignment, parseHTML: (element) => { const alignment = element.style.textAlign || this.options.defaultAlignment return this.options.alignments.includes(alignment) ? alignment : this.options.defaultAlignment }, renderHTML: (attributes) => { if (attributes.textAlign === this.options.defaultAlignment) { return {} } return { style: `text-align: ${attributes.textAlign}` } }, }, }, }, ] }, addCommands() { return { setTextAlign: (alignment: string) => ({ commands }) => { if (!this.options.alignments.includes(alignment)) { return false } return this.options.types .map((type) => commands.updateAttributes(type, { textAlign: alignment }) ) .every((response) => response) }, unsetTextAlign: () => ({ commands }) => { return this.options.types .map((type) => commands.resetAttributes(type, "textAlign")) .every((response) => response) }, } }, addKeyboardShortcuts() { return { "Mod-Shift-l": () => this.editor.commands.setTextAlign("left"), "Mod-Shift-e": () => this.editor.commands.setTextAlign("center"), "Mod-Shift-r": () => this.editor.commands.setTextAlign("right"), "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify"), } }, })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/text-align.ts
TypeScript
agpl-3.0
3,059
import { getMarkAttributes, Mark, mergeAttributes } from "@tiptap/core" export interface TextStyleOptions { /** * HTML attributes to add to the span element. * @default {} * @example { class: 'foo' } */ HTMLAttributes: Record<string, any> } declare module "@tiptap/core" { interface Commands<ReturnType> { textStyle: { /** * Remove spans without inline style attributes. * @example editor.commands.removeEmptyTextStyle() */ removeEmptyTextStyle: () => ReturnType } } } /** * This extension allows you to create text styles. It is required by default * for the `textColor` and `backgroundColor` extensions. * @see https://www.tiptap.dev/api/marks/text-style */ export const TextStyle = Mark.create<TextStyleOptions>({ name: "textStyle", priority: 101, addOptions() { return { HTMLAttributes: {}, } }, parseHTML() { return [ { tag: "span", getAttrs: (element) => { const hasStyles = (element as HTMLElement).hasAttribute("style") if (!hasStyles) { return false } return {} }, }, ] }, renderHTML({ HTMLAttributes }) { return [ "span", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0, ] }, addCommands() { return { removeEmptyTextStyle: () => ({ state, commands }) => { const attributes = getMarkAttributes(state, this.type) const hasStyles = Object.entries(attributes).some( ([, value]) => !!value ) if (hasStyles) { return true } return commands.unsetMark(this.name) }, } }, })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/text-style.ts
TypeScript
agpl-3.0
1,747
import { Node } from "@tiptap/core" /** * This extension allows you to create text nodes. * @see https://www.tiptap.dev/api/nodes/text */ export const Text = Node.create({ name: "text", group: "inline", })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/text.ts
TypeScript
agpl-3.0
214
import { Extension, textInputRule } from "@tiptap/core" export interface TypographyOptions { /** * The em dash character. * @default '—' */ emDash: false | string /** * The ellipsis character. * @default '…' */ ellipsis: false | string /** * The open double quote character. * @default '“' */ openDoubleQuote: false | string /** * The close double quote character. * @default '”' */ closeDoubleQuote: false | string /** * The open single quote character. * @default '‘' */ openSingleQuote: false | string /** * The close single quote character. * @default '’' */ closeSingleQuote: false | string /** * The left arrow character. * @default '←' */ leftArrow: false | string /** * The right arrow character. * @default '→' */ rightArrow: false | string /** * The copyright character. * @default '©' */ copyright: false | string /** * The trademark character. * @default '™' */ trademark: false | string /** * The servicemark character. * @default '℠' */ servicemark: false | string /** * The registered trademark character. * @default '®' */ registeredTrademark: false | string /** * The one half character. * @default '½' */ oneHalf: false | string /** * The plus minus character. * @default '±' */ plusMinus: false | string /** * The not equal character. * @default '≠' */ notEqual: false | string /** * The laquo character. * @default '«' */ laquo: false | string /** * The raquo character. * @default '»' */ raquo: false | string /** * The multiplication character. * @default '×' */ multiplication: false | string /** * The superscript two character. * @default '²' */ superscriptTwo: false | string /** * The superscript three character. * @default '³' */ superscriptThree: false | string /** * The one quarter character. * @default '¼' */ oneQuarter: false | string /** * The three quarters character. * @default '¾' */ threeQuarters: false | string } export const emDash = (override?: string) => textInputRule({ find: /--$/, replace: override ?? "—", }) export const ellipsis = (override?: string) => textInputRule({ find: /\.\.\.$/, replace: override ?? "…", }) export const openDoubleQuote = (override?: string) => textInputRule({ find: /(?:^|[\s{[(<'"\u2018\u201C])(")$/, replace: override ?? "“", }) export const closeDoubleQuote = (override?: string) => textInputRule({ find: /"$/, replace: override ?? "”", }) export const openSingleQuote = (override?: string) => textInputRule({ find: /(?:^|[\s{[(<'"\u2018\u201C])(')$/, replace: override ?? "‘", }) export const closeSingleQuote = (override?: string) => textInputRule({ find: /'$/, replace: override ?? "’", }) export const leftArrow = (override?: string) => textInputRule({ find: /<-$/, replace: override ?? "←", }) export const rightArrow = (override?: string) => textInputRule({ find: /->$/, replace: override ?? "→", }) export const copyright = (override?: string) => textInputRule({ find: /\(c\)$/, replace: override ?? "©", }) export const trademark = (override?: string) => textInputRule({ find: /\(tm\)$/, replace: override ?? "™", }) export const servicemark = (override?: string) => textInputRule({ find: /\(sm\)$/, replace: override ?? "℠", }) export const registeredTrademark = (override?: string) => textInputRule({ find: /\(r\)$/, replace: override ?? "®", }) export const oneHalf = (override?: string) => textInputRule({ find: /(?:^|\s)(1\/2)\s$/, replace: override ?? "½", }) export const plusMinus = (override?: string) => textInputRule({ find: /\+\/-$/, replace: override ?? "±", }) export const notEqual = (override?: string) => textInputRule({ find: /!=$/, replace: override ?? "≠", }) export const laquo = (override?: string) => textInputRule({ find: /<<$/, replace: override ?? "«", }) export const raquo = (override?: string) => textInputRule({ find: />>$/, replace: override ?? "»", }) export const multiplication = (override?: string) => textInputRule({ find: /\d+\s?([*x])\s?\d+$/, replace: override ?? "×", }) export const superscriptTwo = (override?: string) => textInputRule({ find: /\^2$/, replace: override ?? "²", }) export const superscriptThree = (override?: string) => textInputRule({ find: /\^3$/, replace: override ?? "³", }) export const oneQuarter = (override?: string) => textInputRule({ find: /(?:^|\s)(1\/4)\s$/, replace: override ?? "¼", }) export const threeQuarters = (override?: string) => textInputRule({ find: /(?:^|\s)(3\/4)\s$/, replace: override ?? "¾", }) /** * This extension allows you to add typography replacements for specific characters. * @see https://www.tiptap.dev/api/extensions/typography */ export const Typography = Extension.create<TypographyOptions>({ name: "typography", addOptions() { return { closeDoubleQuote: "”", closeSingleQuote: "’", copyright: "©", ellipsis: "…", emDash: "—", laquo: "«", leftArrow: "←", multiplication: "×", notEqual: "≠", oneHalf: "½", oneQuarter: "¼", openDoubleQuote: "“", openSingleQuote: "‘", plusMinus: "±", raquo: "»", registeredTrademark: "®", rightArrow: "→", servicemark: "℠", superscriptThree: "³", superscriptTwo: "²", threeQuarters: "¾", trademark: "™", } }, addInputRules() { const rules = [] if (this.options.emDash !== false) { rules.push(emDash(this.options.emDash)) } if (this.options.ellipsis !== false) { rules.push(ellipsis(this.options.ellipsis)) } if (this.options.openDoubleQuote !== false) { rules.push(openDoubleQuote(this.options.openDoubleQuote)) } if (this.options.closeDoubleQuote !== false) { rules.push(closeDoubleQuote(this.options.closeDoubleQuote)) } if (this.options.openSingleQuote !== false) { rules.push(openSingleQuote(this.options.openSingleQuote)) } if (this.options.closeSingleQuote !== false) { rules.push(closeSingleQuote(this.options.closeSingleQuote)) } if (this.options.leftArrow !== false) { rules.push(leftArrow(this.options.leftArrow)) } if (this.options.rightArrow !== false) { rules.push(rightArrow(this.options.rightArrow)) } if (this.options.copyright !== false) { rules.push(copyright(this.options.copyright)) } if (this.options.trademark !== false) { rules.push(trademark(this.options.trademark)) } if (this.options.servicemark !== false) { rules.push(servicemark(this.options.servicemark)) } if (this.options.registeredTrademark !== false) { rules.push(registeredTrademark(this.options.registeredTrademark)) } if (this.options.oneHalf !== false) { rules.push(oneHalf(this.options.oneHalf)) } if (this.options.plusMinus !== false) { rules.push(plusMinus(this.options.plusMinus)) } if (this.options.notEqual !== false) { rules.push(notEqual(this.options.notEqual)) } if (this.options.laquo !== false) { rules.push(laquo(this.options.laquo)) } if (this.options.raquo !== false) { rules.push(raquo(this.options.raquo)) } if (this.options.multiplication !== false) { rules.push(multiplication(this.options.multiplication)) } if (this.options.superscriptTwo !== false) { rules.push(superscriptTwo(this.options.superscriptTwo)) } if (this.options.superscriptThree !== false) { rules.push(superscriptThree(this.options.superscriptThree)) } if (this.options.oneQuarter !== false) { rules.push(oneQuarter(this.options.oneQuarter)) } if (this.options.threeQuarters !== false) { rules.push(threeQuarters(this.options.threeQuarters)) } return rules }, })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/typography.ts
TypeScript
agpl-3.0
8,345
import { Mark, mergeAttributes } from "@tiptap/core" export interface UnderlineOptions { /** * HTML attributes to add to the underline element. * @default {} * @example { class: 'foo' } */ HTMLAttributes: Record<string, any> } declare module "@tiptap/core" { interface Commands<ReturnType> { underline: { /** * Set an underline mark * @example editor.commands.setUnderline() */ setUnderline: () => ReturnType /** * Toggle an underline mark * @example editor.commands.toggleUnderline() */ toggleUnderline: () => ReturnType /** * Unset an underline mark * @example editor.commands.unsetUnderline() */ unsetUnderline: () => ReturnType } } } /** * This extension allows you to create underline text. * @see https://www.tiptap.dev/api/marks/underline */ export const Underline = Mark.create<UnderlineOptions>({ name: "underline", addOptions() { return { HTMLAttributes: {}, } }, parseHTML() { return [ { tag: "u", }, { style: "text-decoration", consuming: false, getAttrs: (style) => (style as string).includes("underline") ? {} : false, }, ] }, renderHTML({ HTMLAttributes }) { return [ "u", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0, ] }, addCommands() { return { setUnderline: () => ({ commands }) => { return commands.setMark(this.name) }, toggleUnderline: () => ({ commands }) => { return commands.toggleMark(this.name) }, unsetUnderline: () => ({ commands }) => { return commands.unsetMark(this.name) }, } }, addKeyboardShortcuts() { return { "Mod-u": () => this.editor.commands.toggleUnderline(), "Mod-U": () => this.editor.commands.toggleUnderline(), } }, })
2302_79757062/drive
frontend/src/components/DocEditor/extensions/underline.ts
TypeScript
agpl-3.0
2,006
import { Node, mergeAttributes } from "@tiptap/core" // Inspired by this blog: https://www.codemzy.com/blog/tiptap-video-embed-extension const Video = Node.create({ name: "video", group: "block", selectable: true, draggable: true, atom: true, addAttributes() { return { src: { default: null, }, } }, parseHTML() { return [ { tag: "video", }, ] }, renderHTML({ HTMLAttributes }) { return ["video", mergeAttributes(HTMLAttributes)] }, addNodeView() { return ({ editor, node }) => { const div = document.createElement("div") div.className = "relative aspect-w-16 aspect-h-9" + (editor.isEditable ? " cursor-pointer" : "") const video = document.createElement("video") /* if (editor.isEditable) { video.className = "pointer-events-none"; } */ video.setAttribute("controls", "") video.src = node.attrs.src /* if (!editor.isEditable) { video.setAttribute("controls", ""); } else { let videoPill = document.createElement("div"); videoPill.className = "absolute top-0 right-0 text-xs m-2 bg-gray-800 text-white px-2 py-1 rounded-md"; videoPill.innerHTML = "Video"; div.append(videoPill); } */ div.append(video) return { dom: div, } } }, }) export default Video
2302_79757062/drive
frontend/src/components/DocEditor/extensions/video-extension.js
JavaScript
agpl-3.0
1,414
import { diff, diffCleanupSemantic } from "diff-match-patch-es" import { Fragment, Node } from "prosemirror-model" import * as JsDiff from "diff" import { DiffType } from "./extensions/diffType" // function to add marks on a document node by node export const patchDocumentNode = (schema, oldNode, newNode) => { assertNodeTypeEqual(oldNode, newNode) const finalLeftChildren = [] const finalRightChildren = [] // normlize, compare, and store children const oldChildren = normalizeNodeContent(oldNode) const newChildren = normalizeNodeContent(newNode) const oldChildLen = oldChildren.length const newChildLen = newChildren.length const minChildLen = Math.min(oldChildLen, newChildLen) // ptrs for travel on both sides let left = 0 // old let right = 0 // new // find matching from looping left for (; left < minChildLen; left++) { const oldChild = oldChildren[left] const newChild = newChildren[left] // break if diff if (!isNodeEqual(oldChild, newChild)) { break } // store if same finalLeftChildren.push(...ensureArray(oldChild)) } // same as above but right side // can probably skip this extra loop for (; right + left + 1 < minChildLen; right++) { const oldChild = oldChildren[oldChildLen - right - 1] const newChild = newChildren[newChildLen - right - 1] if (!isNodeEqual(oldChild, newChild)) { break } finalRightChildren.unshift(...ensureArray(oldChild)) } // different nodes const diffOldChildren = oldChildren.slice(left, oldChildLen - right) const diffNewChildren = newChildren.slice(left, newChildLen - right) if (diffOldChildren.length && diffNewChildren.length) { // match nodes between differing children const matchedNodes = matchNodes( schema, diffOldChildren, diffNewChildren ).sort((a, b) => b.count - a.count) // sort by descending node count const bestMatch = matchedNodes[0] // Get the best match (most common) if (bestMatch) { // destructure idx from highest match const { oldStartIndex, newStartIndex, oldEndIndex, newEndIndex } = bestMatch // get child before match const oldBeforeMatchChildren = diffOldChildren.slice(0, oldStartIndex) const newBeforeMatchChildren = diffNewChildren.slice(0, newStartIndex) // add and patch remaining and add to final left (old) finalLeftChildren.push( ...patchRemainNodes( schema, oldBeforeMatchChildren, newBeforeMatchChildren ) ) finalLeftChildren.push( ...diffOldChildren.slice(oldStartIndex, oldEndIndex) ) // Get children after the matched nodes from both arrays. const oldAfterMatchChildren = diffOldChildren.slice(oldEndIndex) const newAfterMatchChildren = diffNewChildren.slice(newEndIndex) // Patch remaining nodes after the match and add to finalRightChildren. finalRightChildren.unshift( ...patchRemainNodes( schema, oldAfterMatchChildren, newAfterMatchChildren ) ) } else { // If no best match is found, simply patch remaining nodes directly. finalLeftChildren.push( ...patchRemainNodes(schema, diffOldChildren, diffNewChildren) ) } } else { // If there are no differing children in one of the arrays, patch remaining nodes directly. finalLeftChildren.push( ...patchRemainNodes(schema, diffOldChildren, diffNewChildren) ) } // make new patched node return createNewNode(oldNode, [...finalLeftChildren, ...finalRightChildren]) } const matchNodes = (schema, oldChildren, newChildren) => { const matches = [] for ( let oldStartIndex = 0; oldStartIndex < oldChildren.length; oldStartIndex++ ) { const oldStartNode = oldChildren[oldStartIndex] // find the index of the matching node in the new children array const newStartIndex = findMatchNode(newChildren, oldStartNode) // if match then find range of matching nodes if (newStartIndex !== -1) { let oldEndIndex = oldStartIndex + 1 let newEndIndex = newStartIndex + 1 // keep going for a match until none for ( ; oldEndIndex < oldChildren.length && newEndIndex < newChildren.length; oldEndIndex++, newEndIndex++ ) { const oldEndNode = oldChildren[oldEndIndex] if (!isNodeEqual(newChildren[newEndIndex], oldEndNode)) { break } } matches.push({ oldStartIndex, newStartIndex, oldEndIndex, newEndIndex, count: newEndIndex - newStartIndex, }) } } return matches } // find matching nodes in children from given idx const findMatchNode = (children, node, startIndex = 0) => { for (let i = startIndex; i < children.length; i++) { if (isNodeEqual(children[i], node)) { return i } } return -1 } // usually completely different nodes with const patchRemainNodes = (schema, oldChildren, newChildren) => { const finalLeftChildren = [] const finalRightChildren = [] const oldChildLen = oldChildren.length const newChildLen = newChildren.length let left = 0 let right = 0 while (oldChildLen - left - right > 0 && newChildLen - left - right > 0) { const leftOldNode = oldChildren[left] const leftNewNode = newChildren[left] const rightOldNode = oldChildren[oldChildLen - right - 1] const rightNewNode = newChildren[newChildLen - right - 1] let updateLeft = !isTextNode(leftOldNode) && matchNodeType(leftOldNode, leftNewNode) let updateRight = !isTextNode(rightOldNode) && matchNodeType(rightOldNode, rightNewNode) if (Array.isArray(leftOldNode) && Array.isArray(leftNewNode)) { finalLeftChildren.push( ...patchTextNodes(schema, leftOldNode, leftNewNode) ) left += 1 continue } if (updateLeft && updateRight) { const equalityLeft = computeChildEqualityFactor(leftOldNode, leftNewNode) const equalityRight = computeChildEqualityFactor( rightOldNode, rightNewNode ) if (equalityLeft < equalityRight) { updateLeft = false } else { updateRight = false } } if (updateLeft) { finalLeftChildren.push( patchDocumentNode(schema, leftOldNode, leftNewNode) ) left += 1 } else if (updateRight) { finalRightChildren.unshift( patchDocumentNode(schema, rightOldNode, rightNewNode) ) right += 1 } else { // todo finalLeftChildren.push( createDiffNode(schema, leftOldNode, DiffType.Deleted) ) finalLeftChildren.push( createDiffNode(schema, leftNewNode, DiffType.Inserted) ) left += 1 // delete and insert } } const deleteNodeLen = oldChildLen - left - right const insertNodeLen = newChildLen - left - right if (deleteNodeLen) { finalLeftChildren.push( ...oldChildren .slice(left, left + deleteNodeLen) .flat() .map((node) => createDiffNode(schema, node, DiffType.Deleted)) ) } if (insertNodeLen) { finalRightChildren.unshift( ...newChildren .slice(left, left + insertNodeLen) .flat() .map((node) => createDiffNode(schema, node, DiffType.Inserted)) ) } return [...finalLeftChildren, ...finalRightChildren] } export const patchTextNodes = (schema, oldNode, newNode) => { const oldText = oldNode.map((n) => getNodeText(n)).join("") const newText = newNode.map((n) => getNodeText(n)).join("") //const diff = dmp.diff_main(oldText, newText) //const diff = diffLineMode(oldText, newText) //const diff = smartDiff(oldText, newText) const dmpDiff = diff(oldText, newText) diffCleanupSemantic(dmpDiff) //const diff = JsDiff.convertChangesToDMP(smartDiff(oldText, newText)) let oldLen = 0 let newLen = 0 // given a diff generate new nodes with the diff mark and attr from dmp const res = dmpDiff .map((d) => { const [type, content] = [d[0], d[1]] const node = createTextNode( schema, content, type !== DiffType.Unchanged ? createDiffMark(schema, type) : [] ) const oldFrom = oldLen const oldTo = oldFrom + (type === DiffType.Inserted ? 0 : content.length) const newFrom = newLen const newTo = newFrom + (type === DiffType.Deleted ? 0 : content.length) oldLen = oldTo newLen = newTo return { node, type, oldFrom, oldTo, newFrom, newTo } }) .map(({ node, type, oldFrom, oldTo, newFrom, newTo }) => { if (type === DiffType.Deleted) { const textItems = findTextNodes(oldNode, oldFrom, oldTo).filter( (n) => Object.keys(n.node.attrs ?? {}).length || n.node.marks?.length ) return applyTextNodeAttrsMarks(schema, node, oldFrom, textItems) } else { const textItems = findTextNodes(newNode, newFrom, newTo).filter( (n) => Object.keys(n.node.attrs ?? {}).length || n.node.marks?.length ) return applyTextNodeAttrsMarks(schema, node, newFrom, textItems) } }) return res.flat(Infinity) } /* function smartDiff(oldContent, newContent) { const wordDiffs = JsDiff.diffWords(oldContent, newContent) const totalChanges = wordDiffs.reduce((acc, part) => { if (part.added) return acc + part.value.split(/\s+/).length if (part.removed) return acc + part.value.split(/\s+/).length return acc }, 0) console.log(totalChanges) // picked this randomly // todo: update const threshold = 8 if (totalChanges <= threshold) { return JsDiff.diffChars(oldContent, newContent) } else { return JsDiff.diffSentences( oldContent.replace(/[.!?]/g, "."), newContent.replace(/[.!?]/g, ".") ) } } function diffLineMode(text1, text2) { var dmp = new diff_match_patch() var a = dmp.diff_linesToChars_(text1, text2) var lineText1 = a.chars1 var lineText2 = a.chars2 var lineArray = a.lineArray var diffs = dmp.diff_main(lineText1, lineText2, false) dmp.diff_charsToLines_(diffs, lineArray) dmp.diff_cleanupSemantic(diffs) return diffs } function smartDiff(text1, text2) { if (!text1 || !text2) return [] // Handle empty inputs const dmp = new diff_match_patch() // Split texts into sentences const sentences1 = text1 .split(/[.!?]+/) .map((s) => s.trim()) .filter(Boolean) const sentences2 = text2 .split(/[.!?]+/) .map((s) => s.trim()) .filter(Boolean) // Perform sentence-level diff let sentenceDiff = dmp.diff_main(sentences1.join("\n"), sentences2.join("\n")) dmp.diff_cleanupSemantic(sentenceDiff) // Check sentence-level diff similarity const sentenceSimilarity = 1 - dmp.diff_levenshtein(sentenceDiff) / Math.max(sentences1.length, sentences2.length) if (sentenceSimilarity > 0.8) { return sentenceDiff } // Split sentences into words const words1 = text1.split(/\s+/).filter(Boolean) const words2 = text2.split(/\s+/).filter(Boolean) // Perform word-level diff let wordDiff = dmp.diff_main(words1.join(" "), words2.join(" ")) dmp.diff_cleanupSemantic(wordDiff) // Check word-level diff similarity const wordSimilarity = 1 - dmp.diff_levenshtein(wordDiff) / Math.max(words1.length, words2.length) if (wordSimilarity > 0.6) { return wordDiff } // Fallback to character-level diff return dmp.diff_main(text1, text2) } */ const findTextNodes = (textNodes, from, to) => { const result = [] let start = 0 for (let i = 0; i < textNodes.length && start < to; i++) { const node = textNodes[i] const text = getNodeText(node) const end = start + text.length const intersect = (start >= from && start < to) || (end > from && end <= to) || (start <= from && end >= to) if (intersect) { result.push({ node, from: start, to: end }) } start += text.length } return result } const applyTextNodeAttrsMarks = (schema, node, base, textItems) => { if (!textItems.length) { return node } const baseMarks = node.marks ?? [] const firstItem = textItems[0] const nodeText = getNodeText(node) const nodeEnd = base + nodeText.length const result = [] if (firstItem.from - base > 0) { result.push( createTextNode( schema, nodeText.slice(0, firstItem.from - base), baseMarks ) ) } for (let i = 0; i < textItems.length; i++) { const { from, node: textNode, to } = textItems[i] result.push( createTextNode( schema, nodeText.slice(Math.max(from, base) - base, to - base), [...baseMarks, ...(textNode.marks ?? [])] ) ) const nextFrom = i + 1 < textItems.length ? textItems[i + 1].from : nodeEnd if (nextFrom > to) { result.push( createTextNode( schema, nodeText.slice(to - base, nextFrom - base), baseMarks ) ) } } return result } export const computeChildEqualityFactor = (node1, node2) => { return 0 } export const assertNodeTypeEqual = (node1, node2) => { if (getNodeProperty(node1, "type") !== getNodeProperty(node2, "type")) { throw new Error(`node type not equal: ${node1.type} !== ${node2.type}`) } } export const ensureArray = (value) => { return Array.isArray(value) ? value : [value] } export const isNodeEqual = (node1, node2) => { const isNode1Array = Array.isArray(node1) const isNode2Array = Array.isArray(node2) if (isNode1Array !== isNode2Array) { return false } if (isNode1Array) { return ( node1.length === node2.length && node1.every((node, index) => isNodeEqual(node, node2[index])) ) } const type1 = getNodeProperty(node1, "type") const type2 = getNodeProperty(node2, "type") if (type1 !== type2) { return false } if (isTextNode(node1)) { const text1 = getNodeProperty(node1, "text") const text2 = getNodeProperty(node2, "text") if (text1 !== text2) { return false } } const attrs1 = getNodeAttributes(node1) const attrs2 = getNodeAttributes(node2) const attrs = [...new Set([...Object.keys(attrs1), ...Object.keys(attrs2)])] for (const attr of attrs) { if (attrs1[attr] !== attrs2[attr]) { return false } } const marks1 = getNodeMarks(node1) const marks2 = getNodeMarks(node2) if (marks1.length !== marks2.length) { return false } for (let i = 0; i < marks1.length; i++) { if (!isNodeEqual(marks1[i], marks2[i])) { return false } } const children1 = getNodeChildren(node1) const children2 = getNodeChildren(node2) if (children1.length !== children2.length) { return false } for (let i = 0; i < children1.length; i++) { if (!isNodeEqual(children1[i], children2[i])) { return false } } return true } export const normalizeNodeContent = (node) => { const content = getNodeChildren(node) ?? [] const res = [] for (let i = 0; i < content.length; i++) { const child = content[i] if (isTextNode(child)) { const textNodes = [] // turn this into a while, this is not readable for ( let textNode = content[i]; i < content.length && isTextNode(textNode); textNode = content[++i] ) { textNodes.push(textNode) } i-- res.push(textNodes) } else { res.push(child) } } return res } // generic node utils export const getNodeProperty = (node, property) => { if (property === "type") { return node.type?.name } return node[property] } export const getNodeAttribute = (node, attribute) => node.attrs ? node.attrs[attribute] : undefined export const getNodeAttributes = (node) => (node.attrs ? node.attrs : undefined) export const getNodeMarks = (node) => node.marks ?? [] export const getNodeChildren = (node) => node.content?.content ?? [] export const getNodeText = (node) => node.text export const isTextNode = (node) => node.type?.name === "text" export const matchNodeType = (node1, node2) => node1.type?.name === node2.type?.name || (Array.isArray(node1) && Array.isArray(node2)) export const createNewNode = (oldNode, children) => { if (!oldNode.type) { throw new Error("oldNode.type is undefined") } return new Node( oldNode.type, oldNode.attrs, Fragment.fromArray(children), oldNode.marks ) } // node level diff WIP export const createDiffNode = (schema, node, type) => { return mapDocumentNode(node, (currentNode) => { if (isTextNode(currentNode)) { const textContent = getNodeText(currentNode) const marks = [...(currentNode.marks || []), createDiffMark(schema, type)] return createTextNode(schema, textContent, marks) } return currentNode }) } function mapDocumentNode(node, mapper) { const mappedContent = node.content.content .map((childNode) => mapDocumentNode(childNode, mapper)) .filter(Boolean) // null/undefined const copy = node.copy(Fragment.from(mappedContent)) return mapper(copy) || copy } export const createDiffMark = (schema, type) => { const validTypes = [DiffType.Inserted, DiffType.Deleted] if (!validTypes.includes(type)) { throw new Error("type is not valid") } return schema.mark("diffMark", { type }) } export const createTextNode = (schema, content, marks = []) => { return schema.text(content, marks) } export const generateDiffDocument = (schema, oldDoc, newDoc) => { const oldNode = Node.fromJSON(schema, oldDoc) const newNode = Node.fromJSON(schema, newDoc) return patchDocumentNode(schema, oldNode, newNode) }
2302_79757062/drive
frontend/src/components/DocEditor/genDiff.js
JavaScript
agpl-3.0
17,654
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.7002C2.72386 2.7002 2.5 2.92405 2.5 3.2002C2.5 3.47634 2.72386 3.7002 3 3.7002H13C13.2761 3.7002 13.5 3.47634 13.5 3.2002C13.5 2.92405 13.2761 2.7002 13 2.7002H3ZM5 9.10023C4.72386 9.10023 4.5 9.32409 4.5 9.60023C4.5 9.87637 4.72386 10.1002 5 10.1002H11C11.2761 10.1002 11.5 9.87637 11.5 9.60023C11.5 9.32409 11.2761 9.10023 11 9.10023H5ZM4.5 6.40018C4.5 6.12404 4.72386 5.90018 5 5.90018H11C11.2761 5.90018 11.5 6.12404 11.5 6.40018C11.5 6.67633 11.2761 6.90018 11 6.90018H5C4.72386 6.90018 4.5 6.67633 4.5 6.40018ZM3 12.3003C2.72386 12.3003 2.5 12.5242 2.5 12.8003C2.5 13.0764 2.72386 13.3003 3 13.3003H13C13.2761 13.3003 13.5 13.0764 13.5 12.8003C13.5 12.5242 13.2761 12.3003 13 12.3003H3Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/AlignCenter.vue
Vue
agpl-3.0
956
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.7002C2.72386 2.7002 2.5 2.92405 2.5 3.2002C2.5 3.47634 2.72386 3.7002 3 3.7002H13C13.2761 3.7002 13.5 3.47634 13.5 3.2002C13.5 2.92405 13.2761 2.7002 13 2.7002H3ZM3 9.10042C2.72386 9.10042 2.5 9.32428 2.5 9.60042C2.5 9.87657 2.72386 10.1004 3 10.1004H13C13.2761 10.1004 13.5 9.87657 13.5 9.60042C13.5 9.32428 13.2761 9.10042 13 9.10042H3ZM2.5 6.40035C2.5 6.1242 2.72386 5.90035 3 5.90035H13C13.2761 5.90035 13.5 6.1242 13.5 6.40035C13.5 6.67649 13.2761 6.90035 13 6.90035H3C2.72386 6.90035 2.5 6.67649 2.5 6.40035ZM3 12.3003C2.72386 12.3003 2.5 12.5242 2.5 12.8003C2.5 13.0764 2.72386 13.3003 3 13.3003H13C13.2761 13.3003 13.5 13.0764 13.5 12.8003C13.5 12.5242 13.2761 12.3003 13 12.3003H3Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/AlignJustify.vue
Vue
agpl-3.0
954
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M13 2.7002C13.2761 2.7002 13.5 2.92405 13.5 3.2002C13.5 3.47634 13.2761 3.7002 13 3.7002H3C2.7239 3.7002 2.5 3.47634 2.5 3.2002C2.5 2.92405 2.7239 2.7002 3 2.7002H13ZM13 9.10017C13.2761 9.10017 13.5 9.32403 13.5 9.60017C13.5 9.87631 13.2761 10.1002 13 10.1002H3C2.7239 10.1002 2.5 9.87631 2.5 9.60017C2.5 9.32403 2.7239 9.10017 3 9.10017H13ZM13.5 6.40023C13.5 6.12409 13.2761 5.90023 13 5.90023H3C2.7239 5.90023 2.5 6.12409 2.5 6.40023C2.5 6.67637 2.7239 6.90023 3 6.90023H13C13.2761 6.90023 13.5 6.67637 13.5 6.40023ZM9 12.3003C9.27614 12.3003 9.5 12.5242 9.5 12.8003C9.5 13.0764 9.27614 13.3003 9 13.3003H3C2.7239 13.3003 2.5 13.0764 2.5 12.8003C2.5 12.5242 2.7239 12.3003 3 12.3003H9Z" fill="#171717" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/AlignLeft.vue
Vue
agpl-3.0
941
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.7002C2.72386 2.7002 2.5 2.92405 2.5 3.2002C2.5 3.47634 2.72386 3.7002 3 3.7002H13C13.2761 3.7002 13.5 3.47634 13.5 3.2002C13.5 2.92405 13.2761 2.7002 13 2.7002H3ZM3 9.10018C2.72386 9.10018 2.5 9.32404 2.5 9.60018C2.5 9.87632 2.72386 10.1002 3 10.1002H13C13.2761 10.1002 13.5 9.87632 13.5 9.60018C13.5 9.32404 13.2761 9.10018 13 9.10018H3ZM2.5 6.40023C2.5 6.12409 2.72386 5.90023 3 5.90023H13C13.2761 5.90023 13.5 6.12409 13.5 6.40023C13.5 6.67637 13.2761 6.90023 13 6.90023H3C2.72386 6.90023 2.5 6.67637 2.5 6.40023ZM7 12.3003C6.72386 12.3003 6.5 12.5242 6.5 12.8003C6.5 13.0764 6.72386 13.3003 7 13.3003H13C13.2761 13.3003 13.5 13.0764 13.5 12.8003C13.5 12.5242 13.2761 12.3003 13 12.3003H7Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/AlignRight.vue
Vue
agpl-3.0
956
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M6.75049 5.25231C6.75174 5.80353 7.19897 6.25 7.75049 6.25C8.30277 6.25 8.75049 5.80228 8.75049 5.25C8.75049 4.69772 8.30277 4.25 7.75049 4.25C7.20009 4.25 6.75355 4.69466 6.75051 5.24434L6.7505 5.25048L6.75049 5.25231ZM7.21715 3.3219C7.38694 3.27504 7.56579 3.25 7.75049 3.25C8.85506 3.25 9.75049 4.14543 9.75049 5.25C9.75049 6.35457 8.85506 7.25 7.75049 7.25C6.64592 7.25 5.75049 6.35457 5.75049 5.25L5.75051 5.24026C5.75292 4.36025 5.97712 3.49498 6.40244 2.72447C6.82926 1.95125 7.44475 1.29857 8.19163 0.827174C8.42515 0.679787 8.73394 0.749612 8.88132 0.983133C9.02871 1.21665 8.95888 1.52544 8.72536 1.67283C8.12114 2.05418 7.62321 2.5822 7.27792 3.20773C7.25706 3.24551 7.23681 3.28357 7.21715 3.3219ZM10.5858 2.93757C10.4357 3.1694 10.502 3.47896 10.7339 3.62899C11.1472 3.89648 11.5225 4.21798 11.8496 4.58354C12.7208 5.55692 13.25 6.84111 13.25 8.25008C13.25 8.54665 13.1754 8.94427 13.0583 9.37362C12.9433 9.7952 12.7965 10.2151 12.6715 10.5449C12.4802 11.05 12.4283 11.6132 12.568 12.1577L13.019 13.916L11.5924 13.3399C10.9891 13.0963 10.3288 13.1046 9.73681 13.3043C9.09848 13.5196 8.27666 13.7501 7.75 13.7501C4.71243 13.7501 2.25 11.2876 2.25 8.25008C2.25 7.97394 2.02614 7.75008 1.75 7.75008C1.47386 7.75008 1.25 7.97394 1.25 8.25008C1.25 11.8399 4.16015 14.7501 7.75 14.7501C8.46205 14.7501 9.42951 14.4633 10.0564 14.2518C10.4472 14.12 10.8596 14.1225 11.218 14.2672L13.3785 15.1396C13.8348 15.3239 14.3066 14.9108 14.1844 14.4342L13.5366 11.9092C13.4534 11.5851 13.4803 11.2326 13.6067 10.8992C13.7381 10.5523 13.8967 10.1001 14.0231 9.63678C14.1473 9.18126 14.25 8.68127 14.25 8.25008C14.25 6.58563 13.6237 5.06626 12.5948 3.91662C12.2086 3.48511 11.7655 3.10547 11.2772 2.78946C11.0453 2.63943 10.7358 2.70574 10.5858 2.93757ZM3.25049 6.25C3.80277 6.25 4.25049 5.80228 4.25049 5.25C4.25049 4.69772 3.80277 4.25 3.25049 4.25C2.70009 4.25 2.25355 4.69466 2.2505 5.24434C2.2505 5.24639 2.2505 5.24844 2.2505 5.25048C2.2505 5.25108 2.25049 5.25168 2.25049 5.25227C2.25172 5.80351 2.69896 6.25 3.25049 6.25ZM1.25052 5.23944C1.2505 5.24296 1.25049 5.24648 1.25049 5.25C1.25049 6.35457 2.14592 7.25 3.25049 7.25C4.35506 7.25 5.25049 6.35457 5.25049 5.25C5.25049 4.14543 4.35506 3.25 3.25049 3.25C3.06579 3.25 2.88694 3.27504 2.71715 3.3219C2.73681 3.28357 2.75706 3.24551 2.77792 3.20773C3.12321 2.5822 3.62114 2.05418 4.22536 1.67283C4.45888 1.52544 4.52871 1.21665 4.38132 0.983133C4.23394 0.749612 3.92515 0.679787 3.69163 0.827174C2.94475 1.29857 2.32926 1.95125 1.90244 2.72447C1.47725 3.49475 1.25306 4.35971 1.25052 5.23944Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/BlockQuote.vue
Vue
agpl-3.0
2,805
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3.5 2H12.5C13.3284 2 14 2.67157 14 3.5V12.5C14 13.3284 13.3284 14 12.5 14H3.5C2.67157 14 2 13.3284 2 12.5V3.5C2 2.67157 2.67157 2 3.5 2ZM1 3.5C1 2.11929 2.11929 1 3.5 1H12.5C13.8807 1 15 2.11929 15 3.5V12.5C15 13.8807 13.8807 15 12.5 15H3.5C2.11929 15 1 13.8807 1 12.5V3.5ZM11.791 5.64517C11.9715 5.43618 11.9484 5.12044 11.7394 4.93995C11.5304 4.75946 11.2147 4.78256 11.0342 4.99155L6.77315 9.92538L4.95856 7.90917C4.77383 7.70392 4.45769 7.68728 4.25243 7.87201C4.04718 8.05674 4.03054 8.37288 4.21527 8.57814L6.40924 11.0159C6.50525 11.1226 6.64248 11.1828 6.786 11.1814C6.92952 11.1799 7.06549 11.1168 7.1593 11.0082L11.791 5.64517Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Check.vue
Vue
agpl-3.0
897
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M7.19959 1.93583C7.30215 1.67944 7.17744 1.38845 6.92105 1.28589C6.66466 1.18334 6.37367 1.30805 6.27111 1.56444L4.27111 6.56444C4.16856 6.82083 4.29326 7.11181 4.54966 7.21437C4.80605 7.31693 5.09703 7.19222 5.19959 6.93583L7.19959 1.93583ZM12.3186 2.74967C12.0425 2.74967 11.8186 2.97352 11.8186 3.24967C11.8186 3.52581 12.0425 3.74967 12.3186 3.74967C13.4232 3.74967 14.3186 4.6451 14.3186 5.74967V11.7497C14.3186 12.8542 13.4232 13.7497 12.3186 13.7497H4.31862C3.21405 13.7497 2.31862 12.8542 2.31862 11.7497V8.74967C2.31862 8.47352 2.09476 8.24967 1.81862 8.24967C1.54248 8.24967 1.31862 8.47352 1.31862 8.74967V11.7497C1.31862 13.4065 2.66177 14.7497 4.31862 14.7497H12.3186C13.9755 14.7497 15.3186 13.4065 15.3186 11.7497V5.74967C15.3186 4.09281 13.9755 2.74967 12.3186 2.74967ZM7.92818 2.1727C8.12345 1.97744 8.44003 1.97744 8.63529 2.1727L10.6353 4.1727C10.7291 4.26647 10.7817 4.39365 10.7817 4.52626C10.7817 4.65886 10.7291 4.78604 10.6353 4.87981L8.63529 6.87981C8.44003 7.07507 8.12345 7.07507 7.92818 6.87981C7.73292 6.68455 7.73292 6.36796 7.92818 6.1727L9.57463 4.52626L7.92818 2.87981C7.73292 2.68455 7.73292 2.36796 7.92818 2.1727ZM3.53519 2.87981C3.73046 2.68455 3.73046 2.36796 3.53519 2.1727C3.33993 1.97744 3.02335 1.97744 2.82809 2.1727L0.828087 4.1727C0.632825 4.36796 0.632825 4.68455 0.828087 4.87981L2.82809 6.87981C3.02335 7.07507 3.33993 7.07507 3.53519 6.87981C3.73046 6.68455 3.73046 6.36796 3.53519 6.1727L1.88875 4.52626L3.53519 2.87981Z" fill="#383838" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Code.vue
Vue
agpl-3.0
1,724
<template> <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_2344_29258)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.94959 1.93583C8.05215 1.67944 7.92744 1.38845 7.67105 1.28589C7.41466 1.18334 7.12367 1.30805 7.02111 1.56444L5.02111 6.56444C4.91856 6.82083 5.04326 7.11181 5.29966 7.21437C5.55605 7.31693 5.84703 7.19222 5.94959 6.93583L7.94959 1.93583ZM13.0686 2.74967C12.7925 2.74967 12.5686 2.97352 12.5686 3.24967C12.5686 3.52581 12.7925 3.74967 13.0686 3.74967C14.1732 3.74967 15.0686 4.6451 15.0686 5.74967V11.7497C15.0686 12.8542 14.1732 13.7497 13.0686 13.7497H5.06862C3.96405 13.7497 3.06862 12.8542 3.06862 11.7497V8.74967C3.06862 8.47352 2.84476 8.24967 2.56862 8.24967C2.29248 8.24967 2.06862 8.47352 2.06862 8.74967V11.7497C2.06862 13.4065 3.41177 14.7497 5.06862 14.7497H13.0686C14.7255 14.7497 16.0686 13.4065 16.0686 11.7497V5.74967C16.0686 4.09281 14.7255 2.74967 13.0686 2.74967ZM8.67818 2.1727C8.87345 1.97744 9.19003 1.97744 9.38529 2.1727L11.3853 4.1727C11.4791 4.26647 11.5317 4.39365 11.5317 4.52626C11.5317 4.65886 11.4791 4.78604 11.3853 4.87981L9.38529 6.87981C9.19003 7.07507 8.87345 7.07507 8.67818 6.87981C8.48292 6.68455 8.48292 6.36796 8.67818 6.1727L10.3246 4.52626L8.67818 2.87981C8.48292 2.68455 8.48292 2.36796 8.67818 2.1727ZM4.28519 2.87981C4.48046 2.68455 4.48046 2.36796 4.28519 2.1727C4.08993 1.97744 3.77335 1.97744 3.57809 2.1727L1.57809 4.1727C1.38283 4.36796 1.38283 4.68455 1.57809 4.87981L3.57809 6.87981C3.77335 7.07507 4.08993 7.07507 4.28519 6.87981C4.48046 6.68455 4.48046 6.36796 4.28519 6.1727L2.63875 4.52626L4.28519 2.87981Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_2344_29258"> <rect width="16" height="16" fill="white" transform="translate(0.75)" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Codeblock.vue
Vue
agpl-3.0
1,950
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M7.21289 7.93433H14.0001" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M7.20996 2.75002H14" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M7.20996 13.1842H14" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2 6.6544V3.34558C2 3.05314 2.38249 2.89339 2.63443 3.0806L4.86082 4.73502C5.04639 4.87291 5.04639 5.12706 4.86082 5.26496L2.63443 6.91941C2.38249 7.10661 2 6.94683 2 6.6544Z" fill="currentColor" /> <path d="M2 12.6544V9.34558C2 9.05314 2.38249 8.89339 2.63443 9.0806L4.86082 10.735C5.04639 10.8729 5.04639 11.1271 4.86082 11.265L2.63443 12.9194C2.38249 13.1066 2 12.9468 2 12.6544Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Details.vue
Vue
agpl-3.0
1,103
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 2.5H3.5C2.67157 2.5 2 3.17157 2 4V12C2 12.6907 2.46689 13.2724 3.1023 13.4467C3.11816 13.426 3.13585 13.4062 3.15536 13.3877L9.58389 7.27506C9.88218 6.99142 10.3349 6.9463 10.6833 7.16549L14 9.25207V4C14 3.17157 13.3284 2.5 12.5 2.5ZM12.5 13.5H4.48843L10.2166 8.05332L13.9837 10.4232C13.9891 10.4266 13.9945 10.4299 14 10.4331V12C14 12.8284 13.3284 13.5 12.5 13.5ZM3.5 1.5H12.5C13.8807 1.5 15 2.61929 15 4V12C15 13.3807 13.8807 14.5 12.5 14.5H3.5C2.11929 14.5 1 13.3807 1 12V4C1 2.61929 2.11929 1.5 3.5 1.5ZM6 5.75C6 6.16421 5.66421 6.5 5.25 6.5C4.83579 6.5 4.5 6.16421 4.5 5.75C4.5 5.33579 4.83579 5 5.25 5C5.66421 5 6 5.33579 6 5.75ZM5.25 7.5C6.2165 7.5 7 6.7165 7 5.75C7 4.7835 6.2165 4 5.25 4C4.2835 4 3.5 4.7835 3.5 5.75C3.5 6.7165 4.2835 7.5 5.25 7.5Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Image.vue
Vue
agpl-3.0
1,022
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M7.21289 7.93433H14.0001" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2.77637 2.5H13.8669" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2.77637 13.3684H13.8669" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2 9.85287L2 6.01564C2 5.6765 2.39554 5.49124 2.65607 5.70835L4.95841 7.62697C5.15032 7.78688 5.15032 8.08162 4.95841 8.24154L2.65607 10.1602C2.39554 10.3773 2 10.192 2 9.85287Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Indent.vue
Vue
agpl-3.0
884
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M3.25 14L3.43911 12.8653H6.44771L8.08095 3.13467H5.07235L5.26146 2H12.6884L12.4993 3.13467H9.49069L7.85745 12.8653H10.866L10.6769 14H3.25Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Italic.vue
Vue
agpl-3.0
345
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2 2.5C1.72386 2.5 1.5 2.72386 1.5 3C1.5 3.27614 1.72386 3.5 2 3.5H3C3.27614 3.5 3.5 3.27614 3.5 3C3.5 2.72386 3.27614 2.5 3 2.5H2ZM5.33301 2.5C5.05687 2.5 4.83301 2.72386 4.83301 3C4.83301 3.27614 5.05687 3.5 5.33301 3.5H14.0002C14.2763 3.5 14.5002 3.27614 14.5002 3C14.5002 2.72386 14.2763 2.5 14.0002 2.5H5.33301ZM5.33301 7.30005C5.05687 7.30005 4.83301 7.52391 4.83301 7.80005C4.83301 8.07619 5.05687 8.30005 5.33301 8.30005H14.0002C14.2763 8.30005 14.5002 8.07619 14.5002 7.80005C14.5002 7.52391 14.2763 7.30005 14.0002 7.30005H5.33301ZM4.83301 12.6001C4.83301 12.324 5.05687 12.1001 5.33301 12.1001H14.0002C14.2763 12.1001 14.5002 12.324 14.5002 12.6001C14.5002 12.8762 14.2763 13.1001 14.0002 13.1001H5.33301C5.05687 13.1001 4.83301 12.8762 4.83301 12.6001ZM1.5 7.80005C1.5 7.52391 1.72386 7.30005 2 7.30005H3C3.27614 7.30005 3.5 7.52391 3.5 7.80005C3.5 8.07619 3.27614 8.30005 3 8.30005H2C1.72386 8.30005 1.5 8.07619 1.5 7.80005ZM2 12.1001C1.72386 12.1001 1.5 12.324 1.5 12.6001C1.5 12.8762 1.72386 13.1001 2 13.1001H3C3.27614 13.1001 3.5 12.8762 3.5 12.6001C3.5 12.324 3.27614 12.1001 3 12.1001H2Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/List.vue
Vue
agpl-3.0
1,365
<template> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-at-sign" > <circle cx="12" cy="12" r="4" /> <path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Mention.vue
Vue
agpl-3.0
386
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message-plus" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M8 9h8" /> <path d="M8 13h6" /> <path d="M12.01 18.594l-4.01 2.406v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v5.5" /> <path d="M16 19h6" /> <path d="M19 16v6" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/NewAnnotation.vue
Vue
agpl-3.0
578
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link-plus" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M9 15l6 -6" /> <path d="M11 6l.463 -.536a5 5 0 0 1 7.072 0a4.993 4.993 0 0 1 -.001 7.072" /> <path d="M12.603 18.534a5.07 5.07 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" /> <path d="M16 19h6" /> <path d="M19 16v6" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/NewLink.vue
Vue
agpl-3.0
637
<template> <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.80281 5.80047V2.83289H2.78428L1.82861 3.47882V2.64228L2.80016 1.98047H3.76906V5.80047H2.80281ZM6.0835 3.41797C6.0835 3.14183 6.30735 2.91797 6.5835 2.91797H14.6665C14.9427 2.91797 15.1665 3.14183 15.1665 3.41797C15.1665 3.69411 14.9427 3.91797 14.6665 3.91797H6.5835C6.30735 3.91797 6.0835 3.69411 6.0835 3.41797ZM6.0835 7.89453C6.0835 7.61839 6.30735 7.39453 6.5835 7.39453H14.6665C14.9427 7.39453 15.1665 7.61839 15.1665 7.89453C15.1665 8.17067 14.9427 8.39453 14.6665 8.39453H6.5835C6.30735 8.39453 6.0835 8.17067 6.0835 7.89453ZM6.5835 11.8711C6.30735 11.8711 6.0835 12.095 6.0835 12.3711C6.0835 12.6472 6.30735 12.8711 6.5835 12.8711H14.6665C14.9427 12.8711 15.1665 12.6472 15.1665 12.3711C15.1665 12.095 14.9427 11.8711 14.6665 11.8711H6.5835ZM2.0898 8.75997C1.81802 8.99317 1.68213 9.2974 1.68213 9.67263V9.69104H2.56586V9.67263C2.56586 9.51657 2.61846 9.38857 2.72367 9.28863C2.83063 9.18693 2.96564 9.13608 3.12871 9.13608C3.28302 9.13608 3.40839 9.17816 3.50483 9.26233C3.60127 9.34474 3.64949 9.44731 3.64949 9.57006C3.64949 9.68754 3.61705 9.79976 3.55217 9.90671C3.48905 10.0119 3.3777 10.1408 3.21814 10.2933L1.73736 11.6558V12.3002H4.63053V11.5585H2.99195V11.54L3.89935 10.7037C3.97825 10.6283 4.04226 10.566 4.09135 10.5169C4.14045 10.4661 4.19919 10.3986 4.26757 10.3144C4.33771 10.2285 4.39294 10.1496 4.43327 10.0777C4.4736 10.004 4.50867 9.91987 4.53848 9.82518C4.56829 9.72874 4.58319 9.63318 4.58319 9.53849C4.58319 9.20359 4.45256 8.9318 4.1913 8.72314C3.93179 8.51449 3.58811 8.41016 3.16028 8.41016C2.71841 8.41016 2.36159 8.52676 2.0898 8.75997Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/OrderList.vue
Vue
agpl-3.0
1,833
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M7.21289 7.93408H14.0002" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2.77637 2.5H13.8667" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M2.77637 13.3684H13.8667" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> <path d="M5.32715 6.01562L5.32715 9.85277C5.32715 10.1919 4.93161 10.3772 4.67107 10.1601L2.36878 8.24148C2.17688 8.08156 2.17688 7.78682 2.36878 7.62691L4.67108 5.70833C4.93161 5.49122 5.32715 5.67648 5.32715 6.01562Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Outdent.vue
Vue
agpl-3.0
916
<template> <svg class="w-3.5" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M12 22H17.5C18.0304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V18M4 8V4C4 3.46957 4.21071 2.96086 4.58579 2.58579C4.96086 2.21071 5.46957 2 6 2H14.5L20 7.5V10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M4 4C4 3.46957 4.21071 2.96086 4.58579 2.58579C4.96086 2.21071 5.46957 2 6 2H14.5L20 7.5M4 20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M14 2V8H20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3 15H21" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/PageBreak.vue
Vue
agpl-3.0
1,180
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9214 4.52195C11.1833 2.86392 9.62187 1.97434 7.9919 2.00056L7.99177 2.00057C7.02265 2.01595 6.07073 2.29925 5.34758 2.81803C4.61782 3.34154 4.10303 4.12336 4.10303 5.0989C4.10303 6.03497 4.46395 6.71276 5.04132 7.19971H2.7998H2C1.72386 7.19971 1.5 7.42356 1.5 7.69971C1.5 7.97585 1.72386 8.19971 2 8.19971H2.7998H7.28183C7.28922 8.19987 7.29659 8.19987 7.30394 8.19971H13.9998H14C14.2761 8.19971 14.5 7.97585 14.5 7.69971C14.5 7.42356 14.2761 7.19971 14 7.19971H13.9998H7.36264C6.67705 7.00206 6.11373 6.78133 5.71931 6.46274C5.34255 6.15842 5.10303 5.7523 5.10303 5.0989C5.10303 4.51204 5.40344 4.00866 5.93048 3.63057C6.46409 3.24777 7.21052 3.01308 8.00775 3.00044L8.00789 3.00044C9.25627 2.98031 10.4404 3.65392 11.0078 4.92865C11.1201 5.18092 11.4157 5.29439 11.668 5.18208C11.9202 5.06978 12.0337 4.77423 11.9214 4.52195ZM11.5813 8.96955C11.3996 8.76163 11.0837 8.74038 10.8758 8.9221C10.6678 9.10382 10.6466 9.41968 10.8283 9.62761C11.0749 9.90976 11.2368 10.2852 11.2368 10.8394C11.2368 11.4422 10.9139 11.9984 10.3419 12.433C9.76805 12.8689 8.97538 13.1529 8.14509 13.1936L8.14501 13.1936C7.40852 13.2298 6.70639 13.0901 6.11981 12.7477C5.53951 12.4091 5.04298 11.8556 4.73274 11.0076C4.63787 10.7483 4.35072 10.6149 4.09139 10.7098C3.83206 10.8047 3.69874 11.0918 3.79362 11.3512C4.17938 12.4056 4.82325 13.1489 5.61575 13.6114C6.40195 14.0703 7.30499 14.2361 8.19408 14.1924C9.20698 14.1427 10.1979 13.7982 10.9469 13.2292C11.6977 12.6588 12.2368 11.8333 12.2368 10.8394C12.2368 10.064 12.0003 9.44901 11.5813 8.96955Z" fill="#383838" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/StrikeThrough.vue
Vue
agpl-3.0
1,787
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M2.66406 12H1.2998L4.16797 3.99707H5.67725L8.53467 12H7.18115L4.95215 5.50635H4.8877L2.66406 12ZM2.83057 8.86328H7.00391V9.92139H2.83057V8.86328Z" fill="currentColor" /> <path d="M11.9344 14.374C11.451 14.374 11.0338 14.3096 10.6829 14.1807C10.3356 14.0553 10.0527 13.8853 9.83426 13.6704C9.61941 13.4556 9.46186 13.221 9.3616 12.9668L10.4412 12.5854C10.5056 12.7 10.597 12.82 10.7151 12.9453C10.8333 13.0706 10.9908 13.1763 11.1878 13.2622C11.3883 13.3481 11.6425 13.3911 11.9505 13.3911C12.3837 13.3911 12.74 13.2873 13.0193 13.0796C13.3022 12.8719 13.4436 12.5371 13.4436 12.0752V10.915H13.3631C13.295 11.0439 13.1948 11.1872 13.0623 11.3447C12.9298 11.4987 12.7472 11.6312 12.5144 11.7422C12.2853 11.8532 11.9899 11.9087 11.6282 11.9087C11.1591 11.9087 10.7366 11.7977 10.3606 11.5757C9.98465 11.3537 9.68566 11.026 9.46365 10.5928C9.24165 10.1559 9.13064 9.61881 9.13064 8.98145C9.13064 8.33691 9.23986 7.78727 9.45828 7.33252C9.68029 6.87419 9.97928 6.52507 10.3553 6.28516C10.7348 6.04167 11.1645 5.91992 11.6443 5.91992C12.0096 5.91992 12.3068 5.98079 12.5359 6.10254C12.7651 6.22428 12.9459 6.36751 13.0784 6.53223C13.2109 6.69694 13.3129 6.84554 13.3846 6.97803H13.4651V5.99512H14.6736V12.1235C14.6736 12.6356 14.5537 13.0581 14.3137 13.3911C14.0738 13.7241 13.7462 13.9712 13.3308 14.1323C12.9191 14.2935 12.4536 14.374 11.9344 14.374ZM11.929 10.8989C12.4195 10.8989 12.7955 10.7288 13.0569 10.3887C13.3219 10.0449 13.4544 9.57048 13.4544 8.96533C13.4544 8.56429 13.3953 8.21517 13.2771 7.91797C13.1625 7.61719 12.9925 7.38265 12.7669 7.21436C12.5413 7.04606 12.262 6.96191 11.929 6.96191C11.5924 6.96191 11.3095 7.05143 11.0804 7.23047C10.8512 7.40592 10.6793 7.64404 10.5647 7.94482C10.4501 8.24561 10.3929 8.58577 10.3929 8.96533C10.3929 9.34847 10.4501 9.68506 10.5647 9.9751C10.6829 10.2651 10.8566 10.4925 11.0857 10.6572C11.3149 10.8184 11.596 10.8989 11.929 10.8989Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Style.vue
Vue
agpl-3.0
2,112
<template> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <rect x="3" y="3" width="18" height="18" rx="3" fill="#BEBEBE" fill-opacity="0.45" /> <path d="M12 21V15" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 9V3" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3 15H21" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3 9H21" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> <path d="M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 15V9" stroke="black" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/ToggleHeaderCell.vue
Vue
agpl-3.0
1,096
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M5 2C5 1.72386 4.77614 1.5 4.5 1.5C4.22386 1.5 4 1.72386 4 2V7.5C4 9.70914 5.79086 11.5 8 11.5C10.2091 11.5 12 9.70914 12 7.5V2C12 1.72386 11.7761 1.5 11.5 1.5C11.2239 1.5 11 1.72386 11 2V7.5C11 9.15685 9.65685 10.5 8 10.5C6.34315 10.5 5 9.15685 5 7.5V2ZM2 13.5C1.72386 13.5 1.5 13.7239 1.5 14C1.5 14.2761 1.72386 14.5 2 14.5H14C14.2761 14.5 14.5 14.2761 14.5 14C14.5 13.7239 14.2761 13.5 14 13.5H2Z" fill="#383838" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Underline.vue
Vue
agpl-3.0
653
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.36006 3.51318C1.88545 3.51318 1.5 3.89863 1.5 4.37324V11.6269C1.5 12.1015 1.88545 12.4869 2.36006 12.4869H8.707C9.18161 12.4869 9.56706 12.1015 9.56706 11.6269V4.37324C9.56706 3.89863 9.18161 3.51318 8.707 3.51318H5.53353H2.36006ZM0.5 4.37324C0.5 3.34635 1.33316 2.51318 2.36006 2.51318H5.53353H8.707C9.73389 2.51318 10.5671 3.34635 10.5671 4.37324V5.99273L14.7133 3.09038C14.866 2.98347 15.0655 2.97041 15.2309 3.05651C15.3963 3.14261 15.5 3.31356 15.5 3.5V12.5C15.5 12.6864 15.3963 12.8574 15.2309 12.9435C15.0655 13.0296 14.866 13.0165 14.7133 12.9096L10.5671 10.0073V11.6269C10.5671 12.6538 9.73389 13.4869 8.707 13.4869H2.36006C1.33316 13.4869 0.5 12.6538 0.5 11.6269V4.37324ZM10.5671 8.78661L14.5 11.5397V4.46033L10.5671 7.21339V8.78661ZM2.99991 5.49995C2.99991 5.22381 3.22377 4.99995 3.49991 4.99995H5.49991C5.77606 4.99995 5.99991 5.22381 5.99991 5.49995C5.99991 5.77609 5.77606 5.99995 5.49991 5.99995H3.49991C3.22377 5.99995 2.99991 5.77609 2.99991 5.49995Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/Video.vue
Vue
agpl-3.0
1,230
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M6 17h12a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm4-8h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zM6 5h12a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-center.vue
Vue
agpl-3.0
323
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-align-center" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 4l0 5" /> <path d="M12 15l0 5" /> <path d="M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-item-center.vue
Vue
agpl-3.0
529
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-align-left" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M4 4l0 16" /> <path d="M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-item-left.vue
Vue
agpl-3.0
499
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-align-right" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M20 4l0 16" /> <path d="M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-item-right.vue
Vue
agpl-3.0
501
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M6 17h12a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-8h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm0-4h12a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-left.vue
Vue
agpl-3.0
322
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M6 17h12a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm8-8h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zM6 5h12a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/align-right.vue
Vue
agpl-3.0
323
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M7 7h10a1 1 0 010 2H7a1 1 0 110-2zm2.78 11a1 1 0 01-.97-.757L7.156 10.62A.5.5 0 017.64 10h8.72a.5.5 0 01.485.621l-1.656 6.622a1 1 0 01-.97.757H9.781zM11 6h2a1 1 0 011 1h-4a1 1 0 011-1z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/delete.vue
Vue
agpl-3.0
359
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-float-left" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M4 5m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /> <path d="M14 7l6 0" /> <path d="M14 11l6 0" /> <path d="M4 15l16 0" /> <path d="M4 19l16 0" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/float-item-left.vue
Vue
agpl-3.0
576
<template> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-float-right" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 5m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /> <path d="M4 7l6 0" /> <path d="M4 11l6 0" /> <path d="M4 15l16 0" /> <path d="M4 19l16 0" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/float-item-right.vue
Vue
agpl-3.0
576
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M6 17h12a1 1 0 010 2H6a1 1 0 010-2zm8-8h4a1 1 0 010 2h-4a1 1 0 010-2zm0 4h4a1 1 0 010 2h-4a1 1 0 010-2zM6 9h4a1 1 0 011 1v4a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1zm0-4h12a1 1 0 010 2H6a1 1 0 110-2z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/float-left.vue
Vue
agpl-3.0
376
<template> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em"> <path d="M6 17h12a1 1 0 010 2H6a1 1 0 010-2zm0-8h4a1 1 0 010 2H6a1 1 0 010-2zm0 4h4a1 1 0 010 2H6a1 1 0 010-2zm8-4h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4a1 1 0 011-1zM6 5h12a1 1 0 010 2H6a1 1 0 110-2z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/float-right.vue
Vue
agpl-3.0
375
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.01042 8.07907C2.59872 8.80543 3.8552 8.98681 4.59299 8.30081C5.05954 7.86702 5.1473 7.32069 4.96626 6.77522C4.85213 6.42683 4.57405 6.12302 4.11624 5.9592C3.75814 5.83106 3.36091 5.83267 2.89394 5.83456C2.83654 5.83479 2.77808 5.83502 2.71852 5.83502C2.84626 4.50654 3.74767 3.71417 4.95369 3.12975L4.56269 2.5C3.71489 2.87253 2.98978 3.4195 2.38812 4.1409C1.17512 5.59532 1.31414 7.22121 2.01042 8.07907ZM6.3832 8.07907C6.9715 8.80543 8.22798 8.98681 8.96578 8.30081C9.43232 7.86702 9.52009 7.32069 9.33905 6.77522C9.22492 6.42683 8.94684 6.12302 8.48903 5.9592C8.13093 5.83106 7.7337 5.83267 7.26673 5.83456C7.20933 5.83479 7.15087 5.83502 7.0913 5.83502C7.21904 4.50654 8.12046 3.71417 9.32648 3.12975L8.93547 2.5C8.08768 2.87253 7.36257 3.4195 6.76091 4.1409C5.5479 5.59532 5.68693 7.22121 6.3832 8.07907ZM11.2793 2.9541C11.0032 2.9541 10.7793 3.17796 10.7793 3.4541C10.7793 3.73024 11.0032 3.9541 11.2793 3.9541H14.4807C14.7568 3.9541 14.9807 3.73024 14.9807 3.4541C14.9807 3.17796 14.7568 2.9541 14.4807 2.9541H11.2793ZM11.2793 7.60254C11.0032 7.60254 10.7793 7.8264 10.7793 8.10254C10.7793 8.37868 11.0032 8.60254 11.2793 8.60254H14.4807C14.7568 8.60254 14.9807 8.37868 14.9807 8.10254C14.9807 7.8264 14.7568 7.60254 14.4807 7.60254H11.2793ZM1.52002 12.751C1.52002 12.4748 1.74388 12.251 2.02002 12.251H14.4805C14.7567 12.251 14.9805 12.4748 14.9805 12.751C14.9805 13.0271 14.7567 13.251 14.4805 13.251H2.02002C1.74388 13.251 1.52002 13.0271 1.52002 12.751Z" fill="#383838" /> </svg> </template>
2302_79757062/drive
frontend/src/components/DocEditor/icons/quote.vue
Vue
agpl-3.0
1,721
export { default } from "./TextEditor.vue" export { default as TextEditor } from "./TextEditor.vue" export { default as PreviewEditor } from "./PreviewEditor.vue" export { default as TextEditorBubbleMenu } from "./TextEditorBubbleMenu.vue" export { default as TextEditorFixedMenu } from "./TextEditorFixedMenu.vue" export { default as TextEditorFloatingMenu } from "./TextEditorFloatingMenu.vue" export { EditorContent as TextEditorContent } from "@tiptap/vue-3"
2302_79757062/drive
frontend/src/components/DocEditor/index.js
JavaScript
agpl-3.0
463
import { CommandProps } from "@tiptap/core" import { EditorState } from "prosemirror-state" export function deleteNode( state: EditorState, dispatch: CommandProps["dispatch"], nodeName: string ): boolean { const position = state.selection.$anchor for (let depth = position.depth; depth > 0; depth--) { const node = position.node(depth) if (node.type.name === nodeName) { if (dispatch) { dispatch( state.tr .delete(position.before(depth), position.after(depth)) .scrollIntoView() ) } return true } } return false }
2302_79757062/drive
frontend/src/components/DocEditor/utils/deleteNodes.ts
TypeScript
agpl-3.0
613
import { Attrs, Node as NodeElement } from "prosemirror-model" export function getNestedNodes( node: NodeElement ): Array<Array<Attrs | string>> { const nodes: Array<Array<Attrs | string>> = [] // @note: the content field is not array type node.content.forEach((child) => { if (child instanceof NodeElement) { nodes.push([child.type.name, child.attrs]) } }) return nodes }
2302_79757062/drive
frontend/src/components/DocEditor/utils/getNestedNodes.ts
TypeScript
agpl-3.0
402
import { getHTMLFromFragment } from "@tiptap/core" import { EditorState } from "prosemirror-state" export function getSelectedContent( state: EditorState, current?: string ): string { const currentNodeContent = current ?? state.selection.$head.parent.textContent const selected = state.doc.cut(state.selection.from, state.selection.to) return selected.content.size ? getHTMLFromFragment(selected.content, state.schema) : currentNodeContent }
2302_79757062/drive
frontend/src/components/DocEditor/utils/getSelectedContent.ts
TypeScript
agpl-3.0
462
import commands from "./commands" export function createEditorButton(option) { if (option instanceof Array) { return option.map(createEditorButton) } if (typeof option == "object") { return option } return commands[option] }
2302_79757062/drive
frontend/src/components/DocEditor/utils.js
JavaScript
agpl-3.0
244
<template> <div ondragstart="return false;" ondrop="return false;" class="flex gap-x-3 flex-wrap justify-start items-center w-full min-h-8 mb-6" > <div class="flex gap-3 w-full justify-start items-center flex-wrap"> <div v-if="$route.name === 'Shared'" class="bg-gray-100 rounded-[10px] space-x-0.5 h-7 flex items-center px-0.5 py-1" > <Button variant="ghost" class="max-h-6 leading-none transition-colors focus:outline-none" :class="[ $store.state.shareView === 'with' ? 'bg-white shadow-sm hover:bg-white active:bg-white' : '', ]" @click="$store.commit('toggleShareView', 'with')" > Shared with You </Button> <Button variant="ghost" class="max-h-6 leading-none transition-colors focus:outline-none" :class="[ $store.state.shareView === 'by' ? 'bg-white shadow-sm hover:bg-white active:bg-white' : '', ]" @click="$store.commit('toggleShareView', 'by')" > Shared by You </Button> </div> <Dropdown :options="filterItems" placement="left"> <Button >Filter <template #prefix> <Filter /> </template> <template #suffix> <ChevronDown /> </template> </Button> </Dropdown> <div class="flex flex-wrap items-start justify-start gap-1"> <div v-for="(item, index) in activeFilters" :key="index"> <div class="flex items-center border rounded pl-2 py-1 h-7 text-base"> {{ item }} <Button variant="minimal" @click="$store.state.activeFilters.splice(index, 1)" > <template #icon> <FeatherIcon class="h-3 w-3" name="x" /> </template> </Button> </div> </div> </div> <div class="ml-auto flex gap-x-1 items-center"> <Dropdown v-if="columnHeaders" :options="orderByItems" placement="right" class="basis-auto" > <div class="flex items-center whitespace-nowrap"> <Button class="text-sm h-7 border-r border-slate-200 rounded-r-none" @click.stop="toggleAscending" > <DownArrow :class="{ '[transform:rotateX(180deg)]': ascending }" class="h-3.5" /> </Button> <Button class="text-sm h-7 rounded-l-none flex-1 md:block"> {{ orderByLabel }} </Button> </div> </Dropdown> <div class="bg-gray-100 rounded-md space-x-0.5 h-7 px-0.5 py-1 flex items-center" > <Button variant="ghost" class="max-h-6 leading-none transition-colors focus:outline-none" :class="[ $store.state.view === 'grid' ? 'bg-white shadow-sm hover:bg-white active:bg-white' : '', ]" @click="$store.commit('toggleView', 'grid')" > <ViewGrid /> </Button> <Button variant="ghost" class="max-h-6 leading-none transition-colors focus:outline-none" :class="[ $store.state.view === 'list' ? 'bg-white shadow-sm hover:bg-white active:bg-white' : '', ]" @click="$store.commit('toggleView', 'list')" > <ViewList /> </Button> </div> </div> </div> </div> </template> <script> import { FeatherIcon, Button, Dropdown } from "frappe-ui" import ViewGrid from "@/components/EspressoIcons/ViewGrid.vue" import ViewList from "@/components/EspressoIcons/ViewList.vue" import DownArrow from "./EspressoIcons/DownArrow.vue" import Filter from "./EspressoIcons/Filter.vue" import ChevronDown from "./EspressoIcons/ChevronDown.vue" import Folder from "./MimeIcons/Folder.vue" import Archive from "./MimeIcons/Archive.vue" import Document from "./MimeIcons/Document.vue" import Spreadsheet from "./MimeIcons/Spreadsheet.vue" import Presentation from "./MimeIcons/Presentation.vue" import Audio from "./MimeIcons/Audio.vue" import Image from "./MimeIcons/Image.vue" import Video from "./MimeIcons/Video.vue" import PDF from "./MimeIcons/PDF.vue" import Unknown from "./MimeIcons/Unknown.vue" export default { name: "DriveToolBar", components: { Button, Dropdown, ViewList, ViewGrid, DownArrow, Filter, ChevronDown, FeatherIcon, }, props: { breadcrumbs: { type: Array, default: null, }, actionItems: { type: Array, default: null, }, columnHeaders: { type: Array, default: null, }, actionLoading: { type: Boolean, default: false, }, }, computed: { activeFilters() { return this.$store.state.activeFilters }, orderByField() { return this.$store.state.sortOrder.field }, orderByLabel() { return this.$store.state.sortOrder.label }, ascending() { return this.$store.state.sortOrder.ascending }, orderByItems() { return this.columnHeaders.map((header) => ({ ...header, onClick: () => { this.$store.commit("setSortOrder", { field: header.field, label: header.label, ascending: this.ascending, }) }, })) }, filterItems() { return [ { label: "Folder", icon: Folder, onClick: () => { // toggle folders only this.$store.state.activeFilters.push("Folder") }, }, { label: "Image", icon: Image, onClick: () => { this.$store.state.activeFilters.push("Image") }, }, { label: "Audio", icon: Audio, onClick: () => { this.$store.state.activeFilters.push("Audio") }, }, { label: "Video", icon: Video, onClick: () => { this.$store.state.activeFilters.push("Video") }, }, { label: "PDF", icon: PDF, onClick: () => { this.$store.state.activeFilters.push("PDF") }, }, { label: "Document", icon: Document, onClick: () => { this.$store.state.activeFilters.push("Document") }, }, { label: "Spreadsheet", icon: Spreadsheet, onClick: () => { this.$store.state.activeFilters.push("Spreadsheet") }, }, { label: "Archive", icon: Archive, onClick: () => { this.$store.state.activeFilters.push("Archive") }, }, { label: "Presentation", icon: Presentation, onClick: () => { this.$store.state.activeFilters.push("Presentation") }, }, { label: "Unknown", icon: Unknown, onClick: () => { this.$store.state.activeFilters.push("Unknown") }, }, ].filter((item) => !this.activeFilters.includes(item.label)) }, }, mounted() { for (let element of this.$el.getElementsByTagName("button")) { element.classList.remove("focus:ring-2", "focus:ring-offset-2") } }, methods: { toggleAscending() { this.$store.commit("setSortOrder", { field: this.orderByField, label: this.orderByLabel, ascending: !this.ascending, }) }, }, } </script> ./EspressoIcons/Sort.vue
2302_79757062/drive
frontend/src/components/DriveToolBar.vue
Vue
agpl-3.0
7,945
<template> <div v-if="actionItems.length > 0" ref="emptyContextMenu" class="bg-white rounded-lg absolute shadow-xl px-1.5 py-1 z-20 border min-w-40" :style="{ left: `${calculateX}px`, top: `${calculateY}px` }" > <div v-for="(item, index) in actionItems" :key="index" class="py-0.5" @click=" () => { item.handler() close() } " > <div v-if="item.label === 'Divider'"> <hr /> </div> <div v-else class="h-6 px-2 hover:bg-gray-100 text-sm whitespace-nowrap cursor-pointer rounded flex justify-start items-center" > <component :is="item.icon" class="h-4 w-auto mr-2 stroke-[1.75] text-gray-800" /> <div class="text-gray-800 mr-4">{{ item.label }}</div> </div> </div> </div> </template> <script> import disableScroll from "../utils/disable-scroll" export default { name: "EmptyEntityContext", props: { actionItems: { type: Array, default: null, }, entityContext: { type: Object, default: null, }, close: { type: Function, default: null, }, }, data() { return { parentWidth: null, parentHeight: null, childWidth: null, childHeight: null, } }, mounted() { this.parentWidth = this.$refs.emptyContextMenu.parentElement.clientWidth this.parentHeight = this.$refs.emptyContextMenu.parentElement.clientHeight this.childWidth = this.$refs.emptyContextMenu.clientWidth this.childHeight = this.$refs.emptyContextMenu.clientHeight this.calculateY() this.calculateX() disableScroll.on() }, updated() { this.calculateY() this.calculateX() }, beforeUnmount() { disableScroll.off() }, methods: { disableScroll() { document.querySelector("#currentPage").classList.add("disable-scroll") }, enableScroll() { document.querySelector("#currentPage").classList.remove("disable-scroll") }, calculateY() { if (this.entityContext.y >= this.parentHeight - this.childHeight) { return (this.$refs.emptyContextMenu.style.top = this.entityContext.y - this.childHeight + "px") } else { return (this.$refs.emptyContextMenu.style.top = this.entityContext.y + "px") } }, calculateX() { if (this.entityContext.x >= this.parentWidth - this.childWidth) { return (this.$refs.emptyContextMenu.style.left = this.entityContext.x - this.childWidth + "px") } else { return (this.$refs.emptyContextMenu.style.left = this.entityContext.x + "px") } }, }, } </script> <style> .disable-scroll { overflow: hidden; } </style>
2302_79757062/drive
frontend/src/components/EmptyEntityContextMenu.vue
Vue
agpl-3.0
2,780
<template> <div v-if="actionItems.length > 0" ref="contextMenu" class="bg-white rounded-lg absolute shadow-xl px-1.5 py-1 z-20 min-w-40" :style="{ left: `${calculateX}px`, top: `${calculateY}px` }" > <div v-for="(item, index) in actionItems" :key="index" @click=" () => { if (item.onClick) { item.onClick() close() } } " > <ColorPopover v-if="item.label === 'Color'" :entity-name="entityName" /> <div v-else class="h-7 px-2 hover:bg-gray-100 text-sm cursor-pointer rounded flex justify-start items-center" > <FeatherIcon v-if="typeof item.icon === 'string'" :name="item.icon" class="h-4 w-4 mr-2" :class="[ item.danger ? 'text-red-500' : '', item.label === 'Unfavourite' ? 'fill-amber-400 text-amber-400' : '', ]" /> <component :is="item.icon" v-else class="h-4 w-auto mr-2 text-gray-800" :class="[item.danger ? 'text-red-500' : '']" /> <div class="text-gray-800 mr-4" :class="[item.danger ? 'text-red-500' : '']" > {{ item.label }} </div> </div> </div> </div> </template> <script> import { FeatherIcon } from "frappe-ui" import disableScroll from "../utils/disable-scroll" import ColorPopover from "@/components/ColorPopover.vue" export default { name: "EntityContextMenu", components: { FeatherIcon, ColorPopover }, props: { entityName: { type: String, default: null, }, actionItems: { type: Array, default: null, }, entityContext: { type: Object, default: null, }, close: { type: Function, default: null, }, }, data() { return { parentWidth: null, parentHeight: null, childWidth: null, childHeight: null, } }, mounted() { this.parentWidth = this.$refs.contextMenu.parentElement.clientWidth this.parentHeight = this.$refs.contextMenu.parentElement.clientHeight this.childWidth = this.$refs.contextMenu.clientWidth this.childHeight = this.$refs.contextMenu.clientHeight this.calculateY() this.calculateX() disableScroll.on() }, updated() { this.calculateY() this.calculateX() }, beforeUnmount() { disableScroll.off() }, methods: { disableScroll() { document.querySelector("#currentPage").classList.add("disable-scroll") }, enableScroll() { document.querySelector("#currentPage").classList.remove("disable-scroll") }, calculateY() { if (this.entityContext.y >= this.parentHeight - this.childHeight) { return (this.$refs.contextMenu.style.top = this.entityContext.y - this.childHeight + "px") } else { return (this.$refs.contextMenu.style.top = this.entityContext.y + "px") } }, calculateX() { if (this.entityContext.x >= this.parentWidth - this.childWidth) { return (this.$refs.contextMenu.style.left = this.entityContext.x - this.childWidth + "px") } else { return (this.$refs.contextMenu.style.left = this.entityContext.x + "px") } }, }, } </script>
2302_79757062/drive
frontend/src/components/EntityContextMenu.vue
Vue
agpl-3.0
3,323
<template> <transition enter-active-class="duration-150 ease-out" enter-from-class="transform opacity-0" enter-to-class="opacity-100" leave-active-class="duration-150 ease-in" leave-from-class="opacity-100" leave-to-class="transform opacity-0" > <div v-if="selectedEntities.length" class="absolute inset-x-0 bottom-6 mx-auto w-max text-base" > <div class="flex min-w-[596px] items-center space-x-3 rounded-lg bg-white px-4 py-2 shadow-2xl" > <div class="flex flex-1 justify-between border-r border-gray-300 text-gray-900" > <div class="flex items-center space-x-3"> <Checkbox :model-value="true" :disabled="true" class="text-gray-900" /> <div>{{ selectedEntities.length }} selected</div> </div> <div> <Button v-if="IsDownloadEnabled()" icon-left="download" class="flex items-center text-gray-700" variant="ghost" @click="Download()" > Download </Button> <Button v-if="selectedEntities.length < 2" icon-left="link-2" class="flex items-center text-gray-700" variant="ghost" > Get Link </Button> <Button icon-left="star" class="flex items-center text-gray-700" variant="ghost" > Favourite </Button> </div> </div> <Button icon-left="trash-2" class="flex items-center text-red-500" variant="ghost" > Delete </Button> <Button icon="x" variant="ghost" /> </div> </div> </transition> </template> <script setup> import { useStore } from "vuex" import { Checkbox, Button } from "frappe-ui" import { computed } from "vue" import { folderDownload, selectedEntitiesDownload, } from "@/utils/folderDownload" defineOptions({ inheritAttrs: false, }) const store = useStore() let selectedEntities = computed(() => { return store.state.entityInfo }) function Download() { if (selectedEntities.value.length === 1) { window.location.href = `/api/method/drive.api.files.get_file_content?entity_name=${selectedEntities.value[0].name}&trigger_download=1` } if (selectedEntities.value.length > 1) { selectedEntitiesDownload(selectedEntities.value) } else if (selectedEntities.value[0].is_group === 1) { folderDownload(selectedEntities.value[0]) } } function IsDownloadEnabled() { if (selectedEntities.value[0].document) { return false } const allEntitiesSatisfyCondition = selectedEntities.value.every((entity) => { return entity.allow_download || entity.write || entity.owner === "You" }) return allEntitiesSatisfyCondition } /* function IsFavouriteEnabled(){ if (selectedEntities.value.length > 0 && this.selectedEntities.every((x) => !x.is_favourite)) } */ /* window.location.href = `/api/method/drive.api.files.get_file_content?entity_name=${this.selectedEntities[0].name}&trigger_download=1`; let isEnabled; if (selectedEntities.value.length === 1 && !selectedEntities.value[0].is_group) { isEnabled = true; } return isEnabled; */ /* if (selectedEntities.value.length === 1) { if ( selectedEntities.value.length === 1 && !selectedEntities.value[0].is_group ) { isEnabled = !selectedEntities.value[0].document } } if (selectedEntities.value.length) { const allEntitiesSatisfyCondition = selectedEntities.value.every( (entity) => { return ( entity.allow_download || entity.write || entity.owner === "You" ); } ); return allEntitiesSatisfyCondition; } */ /* } */ /* <!-- // Download --> <!-- onClick: () => // Favourite { label: "Favourite", icon: "star", onClick: () => { this.$resources.toggleFavourite.submit(); }, isEnabled: () => { return ( this.selectedEntities.length > 0 && this.selectedEntities.every((x) => !x.is_favourite) ); }, }, { label: "Unfavourite", icon: "star", onClick: () => { this.$resources.toggleFavourite.submit(); }, isEnabled: () => { return ( this.selectedEntities.length > 0 && this.selectedEntities.every((x) => x.is_favourite) ); }, }, */ </script>
2302_79757062/drive
frontend/src/components/EntityToolbar.vue
Vue
agpl-3.0
4,598
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_5_7864)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.99976 1.85303C4.60474 1.85303 1.85254 4.60523 1.85254 8.00024C1.85254 9.57171 2.44221 11.0055 3.41235 12.0923C3.8439 11.3202 4.46904 10.6711 5.22794 10.2088C6.0402 9.71398 6.97416 9.45222 7.92649 9.45222C8.87881 9.45222 9.81277 9.71397 10.625 10.2088C11.4167 10.6911 12.0628 11.3765 12.4954 12.1928C13.52 11.0947 14.147 9.62067 14.147 8.00024C14.147 7.7241 14.3708 7.50024 14.647 7.50024C14.9231 7.50024 15.147 7.7241 15.147 8.00024C15.147 11.9475 11.9471 15.1475 7.99976 15.1475C4.05246 15.1475 0.852539 11.9475 0.852539 8.00024C0.852539 4.05295 4.05246 0.853027 7.99976 0.853027C8.2759 0.853027 8.49976 1.07688 8.49976 1.35303C8.49976 1.62917 8.2759 1.85303 7.99976 1.85303ZM11.7585 12.8648C11.7104 12.8236 11.6693 12.7726 11.6387 12.7127C11.2907 12.0331 10.7599 11.462 10.1048 11.0628C9.44955 10.6636 8.69563 10.4522 7.92649 10.4522C7.15735 10.4522 6.40343 10.6637 5.74821 11.0628C5.09303 11.462 4.56227 12.0331 4.21428 12.7128C4.19823 12.7441 4.17931 12.7731 4.15802 12.7994C5.21038 13.6429 6.54615 14.1475 7.99976 14.1475C9.41542 14.1475 10.7193 13.6689 11.7585 12.8648ZM7.92628 4.56982C6.94642 4.56982 6.1578 5.35798 6.1578 6.32321C6.1578 7.28843 6.94642 8.07659 7.92628 8.07659C8.90615 8.07659 9.69477 7.28843 9.69477 6.32321C9.69477 5.35798 8.90615 4.56982 7.92628 4.56982ZM5.1578 6.32321C5.1578 4.79941 6.40044 3.56982 7.92628 3.56982C9.45212 3.56982 10.6948 4.79941 10.6948 6.32321C10.6948 7.847 9.45212 9.07659 7.92628 9.07659C6.40044 9.07659 5.1578 7.847 5.1578 6.32321ZM12.8012 1.0127C13.0773 1.0127 13.3012 1.23655 13.3012 1.5127V2.70264H14.5027C14.7789 2.70264 15.0027 2.92649 15.0027 3.20264C15.0027 3.47878 14.7789 3.70264 14.5027 3.70264H13.3012V4.89277C13.3012 5.16891 13.0773 5.39277 12.8012 5.39277C12.525 5.39277 12.3012 5.16891 12.3012 4.89277V3.70264H11.1C10.8238 3.70264 10.6 3.47878 10.6 3.20264C10.6 2.92649 10.8238 2.70264 11.1 2.70264H12.3012V1.5127C12.3012 1.23655 12.525 1.0127 12.8012 1.0127Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_5_7864"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/AddUser.vue
Vue
agpl-3.0
2,375
<template> <svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" > <path class="" clip-rule="evenodd" d="M13.8496 4.69692L12.0062 6.54029C11.8109 6.73555 11.4944 6.73555 11.2991 6.54028L9.45572 4.69692C9.26046 4.50166 9.26046 4.18508 9.45572 3.98981L11.2991 2.14645C11.4944 1.95118 11.8109 1.95118 12.0062 2.14645L13.8496 3.98981C14.0448 4.18507 14.0448 4.50166 13.8496 4.69692ZM14.5567 3.28271C15.1425 3.86849 15.1425 4.81824 14.5567 5.40403L12.7133 7.24739C12.1275 7.83318 11.1778 7.83318 10.592 7.24739L8.74862 5.40402C8.16283 4.81824 8.16283 3.86849 8.74862 3.28271L10.592 1.43934C11.1778 0.853553 12.1275 0.853554 12.7133 1.43934L14.5567 3.28271ZM5.60691 4.34338C5.60691 5.3394 4.79948 6.14683 3.80346 6.14683C2.80743 6.14683 2 5.3394 2 4.34338C2 3.34736 2.80743 2.53992 3.80346 2.53992C4.79948 2.53992 5.60691 3.34736 5.60691 4.34338ZM6.60691 4.34338C6.60691 5.89168 5.35176 7.14683 3.80346 7.14683C2.25515 7.14683 1 5.89168 1 4.34338C1 2.79507 2.25515 1.53992 3.80346 1.53992C5.35176 1.53992 6.60691 2.79507 6.60691 4.34338ZM12.9565 10.3897H10.3495C10.0734 10.3897 9.84954 10.6136 9.84954 10.8897V13.4966C9.84954 13.7728 10.0734 13.9966 10.3495 13.9966H12.9565C13.2326 13.9966 13.4565 13.7728 13.4565 13.4966V10.8897C13.4565 10.6136 13.2326 10.3897 12.9565 10.3897ZM10.3495 9.38971C9.52112 9.38971 8.84954 10.0613 8.84954 10.8897V13.4966C8.84954 14.325 9.52111 14.9966 10.3495 14.9966H12.9565C13.7849 14.9966 14.4565 14.325 14.4565 13.4966V10.8897C14.4565 10.0613 13.7849 9.38971 12.9565 9.38971H10.3495ZM2.5 10.3897H5.10691C5.38305 10.3897 5.60691 10.6136 5.60691 10.8897V13.4966C5.60691 13.7728 5.38306 13.9966 5.10691 13.9966H2.5C2.22386 13.9966 2 13.7728 2 13.4966V10.8897C2 10.6136 2.22386 10.3897 2.5 10.3897ZM1 10.8897C1 10.0613 1.67157 9.38971 2.5 9.38971H5.10691C5.93534 9.38971 6.60691 10.0613 6.60691 10.8897V13.4966C6.60691 14.325 5.93534 14.9966 5.10691 14.9966H2.5C1.67157 14.9966 1 14.325 1 13.4966V10.8897Z" fill="currentColor" fill-rule="evenodd" ></path> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Apps.vue
Vue
agpl-3.0
2,104
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M13.788 3.33106C13.9969 3.51155 14.02 3.82729 13.8396 4.03628L6.4288 12.6171C6.33499 12.7258 6.19903 12.7888 6.05551 12.7903C5.91199 12.7918 5.77476 12.7315 5.67875 12.6248L2.16839 8.72443C1.98366 8.51917 2.0003 8.20303 2.20556 8.0183C2.41081 7.83357 2.72696 7.85021 2.91169 8.05546L6.04266 11.5343L13.0827 3.38266C13.2632 3.17367 13.579 3.15057 13.788 3.33106Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Check.vue
Vue
agpl-3.0
620
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.64645 5.68649C2.84171 5.49122 3.15829 5.49122 3.35355 5.68649L8 10.3329L12.6464 5.68649C12.8417 5.49122 13.1583 5.49122 13.3536 5.68649C13.5488 5.88175 13.5488 6.19833 13.3536 6.39359L8.35355 11.3936C8.15829 11.5889 7.84171 11.5889 7.64645 11.3936L2.64645 6.39359C2.45118 6.19833 2.45118 5.88175 2.64645 5.68649Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/ChevronDown.vue
Vue
agpl-3.0
574
<template> <svg width="1em" height="1em" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M2 10C2 14.4183 5.58172 18 10 18C11.3255 18 12.4 16.9255 12.4 15.6V15.2C12.4 14.8285 12.4 14.6427 12.4205 14.4867C12.5623 13.4098 13.4098 12.5623 14.4867 12.4205C14.6427 12.4 14.8285 12.4 15.2 12.4H15.6C16.9255 12.4 18 11.3255 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> <path d="M6 10.8C6.44183 10.8 6.8 10.4418 6.8 10C6.8 9.55817 6.44183 9.2 6 9.2C5.55817 9.2 5.2 9.55817 5.2 10C5.2 10.4418 5.55817 10.8 6 10.8Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> <path d="M13.2 7.6C13.6418 7.6 14 7.24183 14 6.8C14 6.35817 13.6418 6 13.2 6C12.7582 6 12.4 6.35817 12.4 6.8C12.4 7.24183 12.7582 7.6 13.2 7.6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> <path d="M8.4 6.8C8.84183 6.8 9.2 6.44183 9.2 6C9.2 5.55817 8.84183 5.2 8.4 5.2C7.95817 5.2 7.6 5.55817 7.6 6C7.6 6.44183 7.95817 6.8 8.4 6.8Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template> <script> export default { name: "ColourPicker", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Colour-picker.vue
Vue
agpl-3.0
1,362
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M8 2.5C4.2911 2.5 1.5 4.84419 1.5 7.5C1.5 9.14452 2.54729 10.6518 4.25112 11.5816C4.50048 11.7177 4.758 12.0041 4.7326 12.4082C4.71107 12.7508 4.61659 13.2533 4.47175 13.6657C4.44071 13.7541 4.40789 13.8389 4.37434 13.9195C4.62005 13.8524 4.91964 13.7411 5.26646 13.5579C5.48882 13.4404 5.69385 13.2901 5.9102 13.1207C5.95058 13.089 5.9922 13.056 6.03481 13.0222C6.20816 12.8848 6.39803 12.7342 6.58835 12.6102C6.7875 12.4803 7.01146 12.4447 7.20831 12.4631C7.46767 12.4875 7.73186 12.5 8 12.5C11.7089 12.5 14.5 10.1558 14.5 7.5C14.5 4.84419 11.7089 2.5 8 2.5ZM0.5 7.5C0.5 4.08068 3.97691 1.5 8 1.5C12.0231 1.5 15.5 4.08068 15.5 7.5C15.5 10.9193 12.0231 13.5 8 13.5C7.70158 13.5 7.40709 13.4861 7.11751 13.459C6.97583 13.5528 6.83777 13.6621 6.67569 13.7905C6.62832 13.828 6.5789 13.8671 6.52674 13.908C6.30071 14.085 6.03818 14.2812 5.73354 14.4421C4.73389 14.9702 3.9948 15.0302 3.62977 15.0147C3.39759 15.0048 3.20936 14.8646 3.12194 14.6754C3.03801 14.4938 3.05143 14.2816 3.15736 14.1099C3.24804 13.963 3.40655 13.6808 3.52825 13.3343C3.62961 13.0457 3.70134 12.6878 3.72712 12.4347C1.81521 11.3748 0.5 9.58517 0.5 7.5Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Comment.vue
Vue
agpl-3.0
1,383
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_5_8121)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.50503 0.787868C7.77839 0.5145 8.22161 0.514502 8.49497 0.787868L15.2121 7.50503C15.4855 7.77839 15.4855 8.22161 15.2121 8.49497L11.8536 11.8536L8.49497 15.2121C8.22161 15.4855 7.77839 15.4855 7.50503 15.2121L4.14645 11.8536L0.787868 8.49497C0.5145 8.22161 0.514502 7.77839 0.787868 7.50503L4.14645 4.14645L7.50503 0.787868ZM8 1.70711L4.85355 4.85355L1.70711 8L4.85355 11.1464L8 14.2929L11.1464 11.1464L14.2929 8L8 1.70711Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_5_8121"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Diamond.vue
Vue
agpl-3.0
873
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M1.73633 3.86328C1.73633 3.58714 1.96019 3.36328 2.23633 3.36328H4.61769L4.61787 3.36328L4.61807 3.36328L4.61981 3.3633L4.63259 3.36348C4.64475 3.36369 4.66408 3.36416 4.6899 3.36513C4.74159 3.36708 4.81909 3.37106 4.91714 3.37919C5.11374 3.39549 5.39028 3.42824 5.70547 3.49374C6.28138 3.61342 6.94983 3.83496 7.5003 4.2341V13.2101C6.95008 12.925 6.38153 12.7588 5.90892 12.6606C5.54599 12.5852 5.22809 12.5475 4.99977 12.5286C4.88537 12.5191 4.7928 12.5143 4.72753 12.5118C4.69487 12.5106 4.669 12.5099 4.65058 12.5096L4.62862 12.5093L4.62198 12.5092L4.61977 12.5092L4.61895 12.5092H4.61861C4.61846 12.5092 4.61831 12.5092 4.61831 13.0092V12.5092H1.73633V3.86328ZM8.32464 14.5171C8.90383 14.0305 9.6564 13.7724 10.2951 13.6397C10.6103 13.5742 10.8869 13.5414 11.0835 13.5251C11.1815 13.517 11.259 13.513 11.3107 13.5111C11.3365 13.5101 11.3558 13.5097 11.368 13.5094L11.3808 13.5093L11.3823 13.5092H11.3825H11.3827H11.383H14.7643C15.0404 13.5092 15.2643 13.2854 15.2643 13.0092V3.86328C15.2643 3.03485 14.5927 2.36328 13.7643 2.36328H11.3823V2.86328C11.3823 2.36328 11.3821 2.36328 11.382 2.36328H11.3817H11.3808L11.3786 2.36329L11.372 2.36334L11.35 2.36364C11.3316 2.36397 11.3057 2.36461 11.2731 2.36584C11.2078 2.36829 11.1152 2.37312 11.0008 2.38261C10.7725 2.40154 10.4546 2.43924 10.0917 2.51466C9.47347 2.64312 8.69109 2.88781 8.0003 3.36306C7.30951 2.88781 6.52714 2.64312 5.90892 2.51466C5.54599 2.43924 5.22809 2.40154 4.99977 2.38261C4.88537 2.37312 4.7928 2.36829 4.72753 2.36584C4.69487 2.36461 4.669 2.36397 4.65058 2.36364L4.62862 2.36334L4.62198 2.36329L4.61977 2.36328H4.61895H4.61861C4.61846 2.36328 4.61831 2.36328 4.61831 2.86328V2.36328H2.23633C1.4079 2.36328 0.736328 3.03485 0.736328 3.86328V13.0092C0.736328 13.2854 0.960186 13.5092 1.23633 13.5092L4.61753 13.5092H4.6176L4.61762 13.5092H4.61787H4.61807H4.61831L4.61981 13.5093L4.63259 13.5094C4.64475 13.5097 4.66408 13.5101 4.6899 13.5111C4.74159 13.513 4.81909 13.517 4.91714 13.5251C5.11374 13.5414 5.39028 13.5742 5.70547 13.6397C6.34421 13.7724 7.09677 14.0305 7.67596 14.5171C7.76328 14.5916 7.87654 14.6366 8.0003 14.6366C8.12406 14.6366 8.23733 14.5916 8.32464 14.5171ZM8.5003 13.2101V4.2341C9.05077 3.83496 9.71922 3.61342 10.2951 3.49374C10.6103 3.42824 10.8869 3.39549 11.0835 3.37919C11.1815 3.37106 11.259 3.36708 11.3107 3.36513C11.3365 3.36416 11.3558 3.36369 11.368 3.36348L11.3808 3.3633L11.3823 3.36328L11.3825 3.36328L11.3827 3.36328L11.3829 3.36328H13.7643C14.0404 3.36328 14.2643 3.58714 14.2643 3.86328V12.5092H11.3823V13.0092C11.3823 12.5092 11.3821 12.5092 11.382 12.5092H11.3817L11.3808 12.5092L11.3786 12.5092L11.372 12.5093L11.35 12.5096C11.3316 12.5099 11.3057 12.5106 11.2731 12.5118C11.2078 12.5143 11.1152 12.5191 11.0008 12.5286C10.7725 12.5475 10.4546 12.5852 10.0917 12.6606C9.61907 12.7588 9.05053 12.925 8.5003 13.2101Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Docs.vue
Vue
agpl-3.0
3,091
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M8.5 2.34326C8.5 2.06712 8.27614 1.84326 8 1.84326C7.72386 1.84326 7.5 2.06712 7.5 2.34326V12.4496L3.35355 8.30318C3.15829 8.10792 2.84171 8.10792 2.64645 8.30318C2.45118 8.49845 2.45118 8.81503 2.64645 9.01029L7.63751 14.0014C7.7286 14.0972 7.85732 14.157 8 14.157C8.1427 14.157 8.27143 14.0972 8.36253 14.0013L13.3536 9.01029C13.5488 8.81503 13.5488 8.49845 13.3536 8.30318C13.1583 8.10792 12.8417 8.10792 12.6464 8.30318L8.5 12.4496V2.34326Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/DownArrow.vue
Vue
agpl-3.0
703
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3.35355 6.14645L7.5 10.2929V1.5C7.5 1.22386 7.72386 1 8 1C8.27614 1 8.5 1.22386 8.5 1.5V10.2929L12.6464 6.14645C12.8417 5.95118 13.1583 5.95118 13.3536 6.14645C13.5488 6.34171 13.5488 6.65829 13.3536 6.85355L8.35355 11.8536C8.15829 12.0488 7.84171 12.0488 7.64645 11.8536L2.64645 6.85355C2.45118 6.65829 2.45118 6.34171 2.64645 6.14645C2.84171 5.95118 3.15829 5.95118 3.35355 6.14645ZM2.5 15C2.22386 15 2 14.7761 2 14.5C2 14.2239 2.22386 14 2.5 14H13.5C13.7761 14 14 14.2239 14 14.5C14 14.7761 13.7761 15 13.5 15H2.5Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Download.vue
Vue
agpl-3.0
777
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_2259_65014)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.35069 9.84634C3.37342 9.76162 3.41804 9.68437 3.48006 9.62235L10.4804 2.62199C10.8709 2.23147 11.5041 2.23147 11.8946 2.62199L13.3088 4.03621C13.6994 4.42673 13.6994 5.0599 13.3088 5.45042L6.30849 12.4508C6.24647 12.5128 6.16922 12.5574 6.0845 12.5801L3.18536 13.358C3.01278 13.4043 2.8286 13.3549 2.70224 13.2286C2.57589 13.1022 2.52657 12.9181 2.57288 12.7455L3.35069 9.84634ZM4.28184 10.2348L3.7633 12.1675L5.69606 11.649L12.6017 4.74331L11.1875 3.3291L4.28184 10.2348Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_2259_65014"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Edit.vue
Vue
agpl-3.0
931
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9971 14H3.99707C3.16864 14 2.49707 13.3284 2.49707 12.5V3.5C2.49707 2.67157 3.16864 2 3.99707 2H9.5V3.99989C9.5 5.38061 10.6193 6.4999 12 6.49989L13.4971 6.49988V12.5C13.4971 13.3284 12.8255 14 11.9971 14ZM14.4502 5.49987C14.3612 5.04668 14.1476 4.62366 13.8291 4.2806L11.5246 1.79887C11.0516 1.28945 10.3878 1 9.69261 1H3.99707C2.61636 1 1.49707 2.11929 1.49707 3.5V12.5C1.49707 13.8807 2.61636 15 3.99707 15H11.9971C13.3778 15 14.4971 13.8807 14.4971 12.5V5.98173L14.4968 5.94777L14.4968 5.49987L14.4502 5.49987ZM13.4176 5.49988L12 5.49989C11.1716 5.4999 10.5 4.82832 10.5 3.99989V2.23582C10.6063 2.30368 10.7044 2.38525 10.7918 2.47932L13.0963 4.96105C13.2414 5.11735 13.3502 5.30132 13.4176 5.49988ZM8.00107 6C8.13368 6.00003 8.26085 6.05273 8.3546 6.14652L10.8536 8.64652C11.0488 8.84182 11.0488 9.1584 10.8535 9.35362C10.6582 9.54885 10.3416 9.54879 10.1464 9.35348L8.50049 7.70695V12C8.50049 12.2761 8.27663 12.5 8.00049 12.5C7.72435 12.5 7.50049 12.2761 7.50049 12V7.70726L5.85348 9.35362C5.65818 9.54885 5.3416 9.54879 5.14638 9.35348C4.95115 9.15818 4.95122 8.8416 5.14652 8.64638L7.64749 6.14638C7.74128 6.05263 7.86846 5.99997 8.00107 6Z" fill="currentColor" /> </svg> </template> <script> export default { name: "FileUpload", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/File-upload.vue
Vue
agpl-3.0
1,473
<template> <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M11.5 3V7.5H16M15.6213 6.12132L12.8787 3.37868C12.3161 2.81607 11.553 2.5 10.7574 2.5H5.5C4.39543 2.5 3.5 3.39543 3.5 4.5V15.5C3.5 16.6046 4.39543 17.5 5.5 17.5H14.5C15.6046 17.5 16.5 16.6046 16.5 15.5V8.24264C16.5 7.44699 16.1839 6.68393 15.6213 6.12132Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template> <script> export default { name: "File1", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/File.vue
Vue
agpl-3.0
562
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2 4.16699C1.72386 4.16699 1.5 4.39085 1.5 4.66699C1.5 4.94313 1.72386 5.16699 2 5.16699H14C14.2761 5.16699 14.5 4.94313 14.5 4.66699C14.5 4.39085 14.2761 4.16699 14 4.16699H2ZM3.49996 7.99785C3.49996 7.72171 3.72382 7.49785 3.99996 7.49785H12C12.2761 7.49785 12.5 7.72171 12.5 7.99785C12.5 8.274 12.2761 8.49785 12 8.49785H3.99996C3.72382 8.49785 3.49996 8.274 3.49996 7.99785ZM5.9 11.3291C5.9 11.053 6.12386 10.8291 6.4 10.8291H9.6C9.87614 10.8291 10.1 11.053 10.1 11.3291C10.1 11.6052 9.87614 11.8291 9.6 11.8291H6.4C6.12386 11.8291 5.9 11.6052 5.9 11.3291Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Filter.vue
Vue
agpl-3.0
819
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M10.023 2.5L8.43184 3.68632C8.25916 3.81507 8.04952 3.88462 7.83412 3.88462H2V12.5C2 13.0523 2.44772 13.5 3 13.5H13C13.5523 13.5 14 13.0523 14 12.5V2.5H10.023ZM9.49179 1.64872C9.6213 1.55216 9.77853 1.5 9.94008 1.5H14.35C14.709 1.5 15 1.79101 15 2.15V12.5C15 13.6046 14.1046 14.5 13 14.5H3C1.89543 14.5 1 13.6046 1 12.5V3.53462C1 3.17563 1.29102 2.88462 1.65 2.88462H7.83412L9.49179 1.64872ZM8.00059 5.66821C8.13319 5.66824 8.26036 5.72094 8.35411 5.81473L10.8531 8.31473C11.0484 8.51003 11.0483 8.82661 10.853 9.02184C10.6577 9.21706 10.3411 9.217 10.1459 9.0217L8.5 7.37516V11.6682C8.5 11.9444 8.27614 12.1682 8 12.1682C7.72386 12.1682 7.5 11.9444 7.5 11.6682V7.37547L5.853 9.02184C5.6577 9.21706 5.34111 9.217 5.14589 9.0217C4.95067 8.8264 4.95073 8.50981 5.14603 8.31459L7.647 5.81459C7.74079 5.72084 7.86798 5.66819 8.00059 5.66821Z" fill="currentColor" /> </svg> </template> <script> export default { name: "FolderUpload", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Folder-upload.vue
Vue
agpl-3.0
1,159
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M10.023 2.5L8.43184 3.68632C8.25916 3.81507 8.04952 3.88462 7.83412 3.88462H2V12.5C2 13.0523 2.44772 13.5 3 13.5H13C13.5523 13.5 14 13.0523 14 12.5V2.5H10.023ZM9.49179 1.64872C9.6213 1.55216 9.77853 1.5 9.94008 1.5H14.35C14.709 1.5 15 1.79101 15 2.15V12.5C15 13.6046 14.1046 14.5 13 14.5H3C1.89543 14.5 1 13.6046 1 12.5V3.53462C1 3.17563 1.29102 2.88462 1.65 2.88462H7.83412L9.49179 1.64872Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Folder.vue
Vue
agpl-3.0
650
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.02062 7.49896C2.49506 7.49716 2.97742 7.4933 3.47006 7.48935C3.94277 7.48556 4.42495 7.48169 4.9187 7.47951C4.97589 6.3862 5.14998 5.23014 5.51484 4.17085C5.76241 3.45208 6.1023 2.76557 6.56226 2.17336C4.09972 2.77895 2.23508 4.90491 2.02062 7.49896ZM8 2.1204C7.29452 2.69277 6.79592 3.52219 6.46032 4.49652C6.13931 5.4285 5.97681 6.46734 5.92025 7.4779C6.5896 7.47899 7.28127 7.485 8 7.49989C8.7546 7.48425 9.43077 7.47841 10.0797 7.47777C10.0232 6.46725 9.86068 5.42846 9.53968 4.49651C9.20408 3.52219 8.70548 2.69277 8 2.1204ZM10.0822 8.47771C10.0279 9.50221 9.8654 10.5578 9.53968 11.5035C9.20409 12.4778 8.70548 13.3072 8.00001 13.8796C7.29453 13.3072 6.79592 12.4778 6.46032 11.5035C6.13462 10.5579 5.9721 9.5023 5.91784 8.47784C6.58355 8.47892 7.27164 8.48494 7.98959 8.49989C7.99653 8.50004 8.00347 8.50004 8.01042 8.49989C8.76493 8.48417 9.43715 8.47833 10.0822 8.47771ZM4.91661 8.47951C4.43411 8.48168 3.962 8.48548 3.49714 8.48922C2.99784 8.49323 2.50691 8.49718 2.02045 8.49899C2.2341 11.094 4.09907 13.2209 6.56227 13.8266C6.1023 13.2344 5.76241 12.5479 5.51484 11.8291C5.14541 10.7566 4.97157 9.58487 4.91661 8.47951ZM9.43774 13.8266C9.89771 13.2344 10.2376 12.5479 10.4852 11.8291C10.8545 10.7569 11.0283 9.58549 11.0834 8.48039C11.4269 8.48234 11.771 8.48511 12.1244 8.48796C12.7045 8.49264 13.3098 8.49752 13.9795 8.4993C13.7658 11.0941 11.9008 13.2209 9.43774 13.8266ZM13.9794 7.49928C13.3241 7.49751 12.7264 7.49271 12.1508 7.48809C11.7885 7.48518 11.435 7.48234 11.0814 7.48037C11.0242 6.38681 10.8501 5.23042 10.4852 4.17085C10.2376 3.45208 9.89771 2.76557 9.43774 2.17336C11.9004 2.77897 13.7651 4.90509 13.9794 7.49928ZM1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Globe", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Globe.vue
Vue
agpl-3.0
2,063
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M9.1993 6C9.1993 6.66274 8.66205 7.2 7.9993 7.2C7.33656 7.2 6.7993 6.66274 6.7993 6C6.7993 5.33726 7.33656 4.8 7.9993 4.8C8.66205 4.8 9.1993 5.33726 9.1993 6ZM9.9993 6C9.9993 7.10457 9.10387 8 7.9993 8C6.89473 8 5.9993 7.10457 5.9993 6C5.9993 4.89543 6.89473 4 7.9993 4C9.10387 4 9.9993 4.89543 9.9993 6ZM5.47177 11.1596C5.66924 10.0721 6.43052 9.4 7.20514 9.4H8.79347C9.56809 9.4 10.3294 10.0721 10.5268 11.1596L10.5794 11.4489C10.637 11.7662 10.5651 12.0674 10.4247 12.2817C10.2843 12.4958 10.0953 12.6 9.90945 12.6H6.08915C5.90329 12.6 5.71427 12.4958 5.57392 12.2817C5.43349 12.0674 5.36165 11.7662 5.41925 11.4489L5.47177 11.1596ZM7.20514 8.6C5.93734 8.6 4.93023 9.66409 4.68464 11.0167L4.63212 11.306C4.53854 11.8214 4.64996 12.3314 4.90482 12.7202C5.15976 13.1092 5.57807 13.4 6.08915 13.4H9.90945C10.4205 13.4 10.8388 13.1092 11.0938 12.7202C11.3486 12.3314 11.4601 11.8214 11.3665 11.306L11.314 11.0167C11.0684 9.66409 10.0613 8.6 8.79347 8.6H7.20514ZM10.9744 7.76259C11.2276 7.65743 11.5023 7.6 11.7875 7.6H13.1323C14.2082 7.6 15.1038 8.40629 15.325 9.48582L15.3695 9.70275C15.5402 10.5355 14.9596 11.4 14.0772 11.4H13.2685H13.0181H12.8929C12.672 11.4 12.4929 11.2209 12.4929 11C12.4929 10.7791 12.672 10.6 12.8929 10.6H13.0181H13.2685H14.0772C14.375 10.6 14.6711 10.2797 14.5858 9.86339L14.5413 9.64646C14.3875 8.89584 13.7858 8.4 13.1323 8.4H11.7875C11.6106 8.4 11.44 8.43549 11.2813 8.50139C11.2478 8.51531 11.2148 8.53059 11.1824 8.5472C10.9857 8.64792 10.7447 8.57017 10.644 8.37355C10.5433 8.17694 10.621 7.9359 10.8176 7.83518C10.8688 7.80895 10.9211 7.78472 10.9744 7.76259ZM13.2 5.5C13.2 5.8866 12.8866 6.2 12.5 6.2C12.1134 6.2 11.8 5.8866 11.8 5.5C11.8 5.1134 12.1134 4.8 12.5 4.8C12.8866 4.8 13.2 5.1134 13.2 5.5ZM14 5.5C14 6.32843 13.3284 7 12.5 7C11.6716 7 11 6.32843 11 5.5C11 4.67157 11.6716 4 12.5 4C13.3284 4 14 4.67157 14 5.5ZM5.02558 7.76259C4.77239 7.65743 4.49765 7.6 4.21255 7.6H2.8677C1.79183 7.6 0.896238 8.40629 0.674957 9.48582L0.63049 9.70275C0.459796 10.5355 1.04037 11.4 1.92279 11.4H2.73146H2.98188H3.1071C3.32801 11.4 3.5071 11.2209 3.5071 11C3.5071 10.7791 3.32801 10.6 3.1071 10.6H2.98188H2.73146H1.92279C1.62499 10.6 1.32886 10.2797 1.4142 9.86339L1.45866 9.64646C1.61253 8.89584 2.21423 8.4 2.8677 8.4H4.21255C4.38939 8.4 4.56003 8.43549 4.71871 8.50139C4.75221 8.51531 4.7852 8.53059 4.81764 8.5472C5.01426 8.64792 5.2553 8.57017 5.35601 8.37355C5.45673 8.17694 5.37898 7.9359 5.18237 7.83518C5.13116 7.80895 5.07886 7.78472 5.02558 7.76259ZM2.8 5.5C2.8 5.8866 3.1134 6.2 3.5 6.2C3.8866 6.2 4.2 5.8866 4.2 5.5C4.2 5.1134 3.8866 4.8 3.5 4.8C3.1134 4.8 2.8 5.1134 2.8 5.5ZM2 5.5C2 6.32843 2.67158 7 3.5 7C4.32843 7 5 6.32843 5 5.5C5 4.67157 4.32843 4 3.5 4C2.67158 4 2 4.67157 2 5.5Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Groups.vue
Vue
agpl-3.0
2,986
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M7.32172 2.80646C7.70478 2.45286 8.29522 2.45286 8.67828 2.80646L13.5174 7.27336C13.825 7.55732 14 7.95691 14 8.37556V12.4999C14 13.3284 13.3284 13.9999 12.5 13.9999H11V11.2499C11 9.59307 9.65685 8.24993 8 8.24993C6.34315 8.24993 5 9.59307 5 11.2499V13.9999H3.5C2.67157 13.9999 2 13.3284 2 12.4999V8.37556C2 7.95691 2.17496 7.55732 2.48258 7.27336L7.32172 2.80646ZM6 13.9999H8H10V11.2499C10 10.1454 9.10457 9.24993 8 9.24993C6.89543 9.24993 6 10.1454 6 11.2499V13.9999ZM9.35656 2.07165C8.59044 1.36446 7.40956 1.36446 6.64344 2.07165L1.8043 6.53855C1.29159 7.01182 1 7.67782 1 8.37556V12.4999C1 13.8806 2.11929 14.9999 3.5 14.9999H8H12.5C13.8807 14.9999 15 13.8806 15 12.4999V8.37556C15 7.67781 14.7084 7.01182 14.1957 6.53855L9.35656 2.07165Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Home", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Home.vue
Vue
agpl-3.0
1,057
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_3798_46203)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8 14.25C11.4518 14.25 14.25 11.4518 14.25 8C14.25 4.54822 11.4518 1.75 8 1.75C4.54822 1.75 1.75 4.54822 1.75 8C1.75 11.4518 4.54822 14.25 8 14.25ZM8 15.25C12.0041 15.25 15.25 12.0041 15.25 8C15.25 3.99594 12.0041 0.75 8 0.75C3.99594 0.75 0.75 3.99594 0.75 8C0.75 12.0041 3.99594 15.25 8 15.25ZM8 5.75C8.48325 5.75 8.875 5.35825 8.875 4.875C8.875 4.39175 8.48325 4 8 4C7.51675 4 7.125 4.39175 7.125 4.875C7.125 5.35825 7.51675 5.75 8 5.75ZM8.5 7.43555C8.5 7.1594 8.27614 6.93555 8 6.93555C7.72386 6.93555 7.5 7.1594 7.5 7.43555V11.143C7.5 11.4191 7.72386 11.643 8 11.643C8.27614 11.643 8.5 11.4191 8.5 11.143V7.43555Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_3798_46203"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Info.vue
Vue
agpl-3.0
1,073
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M8.97534 11.5115C8.97534 11.2354 9.1992 11.0115 9.47534 11.0115H11.4831C13.1474 11.0115 14.4967 9.66229 14.4967 7.99794C14.4967 6.3336 13.1474 4.98438 11.4831 4.98437L9.47534 4.98438C9.1992 4.98438 8.97534 4.76052 8.97534 4.48438C8.97534 4.20823 9.1992 3.98438 9.47534 3.98438L11.4831 3.98438C13.6997 3.98438 15.4967 5.78131 15.4967 7.99794C15.4967 10.2146 13.6997 12.0115 11.4831 12.0115H9.47534C9.1992 12.0115 8.97534 11.7876 8.97534 11.5115ZM7.02498 4.48468C7.02498 4.76083 6.80112 4.98468 6.52498 4.98468H4.51723C2.85288 4.98468 1.50366 6.3339 1.50366 7.99825C1.50366 9.6626 2.85288 11.0118 4.51723 11.0118H6.52498C6.80112 11.0118 7.02498 11.2357 7.02498 11.5118C7.02498 11.788 6.80112 12.0118 6.52498 12.0118H4.51723C2.3006 12.0118 0.503662 10.2149 0.503662 7.99825C0.503662 5.78162 2.3006 3.98468 4.51723 3.98468H6.52498C6.80112 3.98468 7.02498 4.20854 7.02498 4.48468ZM10.008 8.49808C10.2841 8.49808 10.508 8.27422 10.508 7.99808C10.508 7.72194 10.2841 7.49808 10.008 7.49808H5.99249C5.71635 7.49808 5.49249 7.72194 5.49249 7.99808C5.49249 8.27422 5.71635 8.49808 5.99249 8.49808H10.008Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Link1", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Link.vue
Vue
agpl-3.0
1,409
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M10 4V5H6V4C6 2.89543 6.89543 2 8 2C9.10457 2 10 2.89543 10 4ZM5 5V4C5 2.34315 6.34315 1 8 1C9.65685 1 11 2.34315 11 4V5H12C13.3807 5 14.5 6.11929 14.5 7.5V12.5C14.5 13.8807 13.3807 15 12 15H4C2.61929 15 1.5 13.8807 1.5 12.5V7.5C1.5 6.11929 2.61929 5 4 5H5ZM11 6H10H6H5H4C3.17157 6 2.5 6.67157 2.5 7.5V12.5C2.5 13.3284 3.17157 14 4 14H12C12.8284 14 13.5 13.3284 13.5 12.5V7.5C13.5 6.67157 12.8284 6 12 6H11Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Lock", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Lock.vue
Vue
agpl-3.0
721
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_2259_64998)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.3536 3.14645C10.1583 2.95118 9.84171 2.95118 9.64645 3.14645C9.45118 3.34171 9.45118 3.65829 9.64645 3.85355L12.7929 7H6C3.51472 7 1.5 9.01472 1.5 11.5V12C1.5 12.2761 1.72386 12.5 2 12.5C2.27614 12.5 2.5 12.2761 2.5 12V11.5C2.5 9.567 4.067 8 6 8H12.7929L9.64645 11.1464C9.45118 11.3417 9.45118 11.6583 9.64645 11.8536C9.84171 12.0488 10.1583 12.0488 10.3536 11.8536L14.3536 7.85355C14.5488 7.65829 14.5488 7.34171 14.3536 7.14645L10.3536 3.14645Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_2259_64998"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Move-2.vue
Vue
agpl-3.0
906
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M10.3536 3.14645C10.1583 2.95118 9.84171 2.95118 9.64645 3.14645C9.45118 3.34171 9.45118 3.65829 9.64645 3.85355L12.7929 7H6C3.51472 7 1.5 9.01472 1.5 11.5V12C1.5 12.2761 1.72386 12.5 2 12.5C2.27614 12.5 2.5 12.2761 2.5 12V11.5C2.5 9.567 4.067 8 6 8H12.7929L9.64645 11.1464C9.45118 11.3417 9.45118 11.6583 9.64645 11.8536C9.84171 12.0488 10.1583 12.0488 10.3536 11.8536L14.3536 7.85355C14.5488 7.65829 14.5488 7.34171 14.3536 7.14645L10.3536 3.14645Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Share", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Move.vue
Vue
agpl-3.0
765
<template> <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M9.34726 2.435C9.13206 2.31203 8.86787 2.31203 8.65267 2.435L4.81439 4.6283L1.18078 6.70465C0.710509 6.97338 0.710509 7.65147 1.18078 7.92019L4.81439 9.99654L8.65267 12.1898C8.86787 12.3128 9.13206 12.3128 9.34726 12.1898L13.1855 9.99654L16.8191 7.92019C17.2894 7.65147 17.2894 6.97338 16.8191 6.70465L9.34726 2.435ZM5.31053 5.49654L8.99996 3.3883L15.8672 7.31242L12.6894 9.1283L8.99996 11.2365L5.31053 9.1283L2.13275 7.31242L5.31053 5.49654ZM1.37303 10.2533C1.13327 10.1163 0.827847 10.1996 0.690842 10.4394C0.553837 10.6791 0.637135 10.9845 0.876894 11.1215L4.81439 13.3715L8.65267 15.5648C8.86787 15.6878 9.13206 15.6878 9.34726 15.5648L13.1855 13.3715L17.123 11.1215C17.3628 10.9845 17.4461 10.6791 17.3091 10.4394C17.1721 10.1996 16.8667 10.1163 16.6269 10.2533L12.6894 12.5033L8.99996 14.6115L5.31053 12.5033L1.37303 10.2533Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/MyDrive.vue
Vue
agpl-3.0
1,090
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9971 14H3.99707C3.16864 14 2.49707 13.3284 2.49707 12.5V3.5C2.49707 2.67157 3.16864 2 3.99707 2H9.5V3.99989C9.5 5.38061 10.6193 6.4999 12 6.49989L13.4971 6.49988V12.5C13.4971 13.3284 12.8255 14 11.9971 14ZM14.4502 5.49987C14.3612 5.04668 14.1476 4.62366 13.8291 4.2806L11.5246 1.79887C11.0516 1.28945 10.3878 1 9.69261 1H3.99707C2.61636 1 1.49707 2.11929 1.49707 3.5V12.5C1.49707 13.8807 2.61636 15 3.99707 15H11.9971C13.3778 15 14.4971 13.8807 14.4971 12.5V5.98173L14.4968 5.94777L14.4968 5.49987L14.4502 5.49987ZM13.4176 5.49988L12 5.49989C11.1716 5.4999 10.5 4.82832 10.5 3.99989V2.23582C10.6063 2.30368 10.7044 2.38525 10.7918 2.47932L13.0963 4.96105C13.2414 5.11735 13.3502 5.30132 13.4176 5.49988ZM8 5.5C8.27614 5.5 8.5 5.72386 8.5 6V8H10.5024C10.7785 8 11.0024 8.22386 11.0024 8.5C11.0024 8.77614 10.7785 9 10.5024 9H8.5V11.0024C8.5 11.2785 8.27614 11.5024 8 11.5024C7.72386 11.5024 7.5 11.2785 7.5 11.0024V9H5.5C5.22386 9 5 8.77614 5 8.5C5 8.22386 5.22386 8 5.5 8H7.5V6C7.5 5.72386 7.72386 5.5 8 5.5Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/NewFile.vue
Vue
agpl-3.0
1,271
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M10.023 2.5L8.43184 3.68632C8.25916 3.81507 8.04952 3.88462 7.83412 3.88462H2V12.5C2 13.0523 2.44772 13.5 3 13.5H13C13.5523 13.5 14 13.0523 14 12.5V2.5H10.023ZM9.49179 1.64872C9.6213 1.55216 9.77853 1.5 9.94008 1.5H14.35C14.709 1.5 15 1.79101 15 2.15V12.5C15 13.6046 14.1046 14.5 13 14.5H3C1.89543 14.5 1 13.6046 1 12.5V3.53462C1 3.17563 1.29102 2.88462 1.65 2.88462H7.83412L9.49179 1.64872ZM8.00098 5.82349C8.27712 5.82349 8.50098 6.04734 8.50098 6.32349V8.32471H10.5009C10.7771 8.32471 11.0009 8.54856 11.0009 8.82471C11.0009 9.10085 10.7771 9.32471 10.5009 9.32471H8.50098V11.3259C8.50098 11.602 8.27712 11.8259 8.00098 11.8259C7.72483 11.8259 7.50098 11.602 7.50098 11.3259V9.32471H5.49854C5.22239 9.32471 4.99854 9.10085 4.99854 8.82471C4.99854 8.54856 5.22239 8.32471 5.49854 8.32471H7.50098V6.32349C7.50098 6.04734 7.72483 5.82349 8.00098 5.82349Z" fill="currentColor" /> </svg> </template> <script> export default { name: "NewFolder", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/NewFolder.vue
Vue
agpl-3.0
1,173
<template> <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M8.02448 6.49982H3.5C2.94772 6.49982 2.5 6.94753 2.5 7.49982V13.9998C2.5 15.6567 3.84315 16.9998 5.5 16.9998H14.5C16.1569 16.9998 17.5 15.6567 17.5 13.9998V9.99982C17.5 9.44753 17.0523 8.99982 16.5 8.99982H10.2169C10.0492 8.99982 9.89259 8.9157 9.79999 8.77584L8.44139 6.7238C8.34879 6.58393 8.19223 6.49982 8.02448 6.49982Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square" /> <path d="M3.87939 4.5V3.5C3.87939 3.22386 4.10325 3 4.37939 3H15.6208C15.8969 3 16.1208 3.22386 16.1208 3.5V7" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Open.vue
Vue
agpl-3.0
836
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M4.12066 1.56934H4.14095H7.53633H7.55661H7.55662C7.912 1.56933 8.2087 1.56932 8.45109 1.58913C8.70392 1.60978 8.94137 1.65446 9.16594 1.76888C9.51042 1.9444 9.79049 2.22447 9.96601 2.56895C10.0804 2.79352 10.1251 3.03097 10.1458 3.2838C10.1656 3.52619 10.1656 3.82288 10.1656 4.17827V4.19856V6.8924H11.8594H11.8797H11.8797H11.8797C12.2351 6.8924 12.5318 6.89239 12.7742 6.91219C13.027 6.93285 13.2644 6.97752 13.489 7.09195C13.8335 7.26747 14.1136 7.54754 14.2891 7.89202C14.4035 8.11659 14.4482 8.35404 14.4688 8.60687C14.4886 8.84926 14.4886 9.14595 14.4886 9.50133V9.52163V13.4768H14.5C14.7761 13.4768 15 13.7007 15 13.9768C15 14.2529 14.7761 14.4768 14.5 14.4768H1.5C1.22386 14.4768 1 14.2529 1 13.9768C1 13.7007 1.22386 13.4768 1.5 13.4768H1.51172V4.19856L1.51172 4.17828C1.51171 3.82289 1.51171 3.5262 1.53151 3.2838C1.55217 3.03097 1.59684 2.79352 1.71126 2.56895C1.88678 2.22447 2.16685 1.9444 2.51133 1.76888C2.7359 1.65446 2.97336 1.60978 3.22618 1.58913C3.46858 1.56932 3.76527 1.56933 4.12065 1.56934H4.12066ZM13.4886 9.52163V13.4768H10.1656V7.8924H11.8594C12.2403 7.8924 12.4959 7.89279 12.6927 7.90887C12.8837 7.92448 12.9749 7.95233 13.035 7.98295C13.1913 8.0626 13.3184 8.18969 13.3981 8.34601C13.4287 8.40611 13.4565 8.49731 13.4721 8.6883C13.4882 8.88513 13.4886 9.14073 13.4886 9.52163ZM9.16555 7.3924V13.4768H2.51172V4.19856C2.51172 3.81766 2.51211 3.56206 2.52819 3.36523C2.54379 3.17425 2.57164 3.08304 2.60227 3.02294C2.68192 2.86662 2.80901 2.73953 2.96533 2.65988C3.02542 2.62926 3.11663 2.60141 3.30762 2.58581C3.50444 2.56973 3.76005 2.56934 4.14095 2.56934H7.53633C7.91723 2.56934 8.17283 2.56973 8.36965 2.58581C8.56064 2.60141 8.65185 2.62926 8.71195 2.65988L8.93894 2.21438L8.71195 2.65988C8.86826 2.73953 8.99536 2.86662 9.075 3.02294C9.10563 3.08304 9.13348 3.17425 9.14908 3.36523C9.16516 3.56206 9.16555 3.81766 9.16555 4.19856V7.3924ZM4.5 4.16138C4.22386 4.16138 4 4.38524 4 4.66138C4 4.93752 4.22386 5.16138 4.5 5.16138H7.49615C7.77229 5.16138 7.99615 4.93752 7.99615 4.66138C7.99615 4.38524 7.77229 4.16138 7.49615 4.16138H4.5ZM4.5 6.82291C4.22386 6.82291 4 7.04677 4 7.32291C4 7.59905 4.22386 7.82291 4.5 7.82291H7.49615C7.77229 7.82291 7.99615 7.59905 7.99615 7.32291C7.99615 7.04677 7.77229 6.82291 7.49615 6.82291H4.5ZM4.5 9.48444C4.22386 9.48444 4 9.7083 4 9.98444C4 10.2606 4.22386 10.4844 4.5 10.4844H7.49615C7.77229 10.4844 7.99615 10.2606 7.99615 9.98444C7.99615 9.7083 7.77229 9.48444 7.49615 9.48444H4.5Z" fill="currentColor" /> </svg> </template> <script> export default { name: "Organization", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Organization.vue
Vue
agpl-3.0
2,775
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M4.23393 1C3.4055 1 2.73393 1.67157 2.73393 2.5V3.96792C2.73393 4.79635 3.4055 5.46792 4.23393 5.46792H12.6377C13.4661 5.46792 14.1377 4.79635 14.1377 3.96792V2.5C14.1377 1.67157 13.4661 1 12.6377 1H4.23393ZM3.73393 2.5C3.73393 2.22386 3.95779 2 4.23393 2H12.6377C12.9138 2 13.1377 2.22386 13.1377 2.5V3.96792C13.1377 4.24407 12.9138 4.46792 12.6377 4.46792H4.23393C3.95779 4.46792 3.73393 4.24407 3.73393 3.96792V2.5ZM1.5 2.73393C1.77614 2.73393 2 2.95779 2 3.23393V7.06883H8.43584C8.71199 7.06883 8.93584 7.29269 8.93584 7.56883V14.5047C8.93584 14.7808 8.71199 15.0047 8.43584 15.0047C8.1597 15.0047 7.93584 14.7808 7.93584 14.5047V8.06883H1.5C1.22386 8.06883 1 7.84498 1 7.56883V3.23393C1 2.95779 1.22386 2.73393 1.5 2.73393ZM13.1822 7.28513L12.7706 7.569L12.359 7.28513C12.4523 7.14981 12.6062 7.069 12.7706 7.069C12.935 7.069 13.0889 7.14981 13.1822 7.28513ZM12.7706 7.569C12.359 7.28513 12.3589 7.28518 12.3589 7.28523L12.3588 7.28539L12.3585 7.28588L12.3573 7.28754L12.3532 7.29355L12.3378 7.31602C12.3246 7.33552 12.3053 7.3639 12.281 7.40017C12.2323 7.47268 12.1631 7.57685 12.0802 7.70466C11.9146 7.95984 11.6932 8.31133 11.471 8.69457C11.2498 9.07616 11.0229 9.49775 10.8498 9.89153C10.6858 10.2646 10.5366 10.6848 10.5366 11.0369C10.5366 11.6294 10.772 12.1976 11.1909 12.6166C11.6099 13.0355 12.1781 13.2709 12.7706 13.2709C13.3631 13.2709 13.9313 13.0355 14.3502 12.6166C14.7692 12.1976 15.0045 11.6294 15.0045 11.0369C15.0045 10.6848 14.8553 10.2646 14.6913 9.89153C14.5182 9.49775 14.2913 9.07616 14.0701 8.69457C13.848 8.31133 13.6265 7.95984 13.461 7.70466C13.3781 7.57685 13.3089 7.47268 13.2602 7.40017C13.2358 7.3639 13.2166 7.33552 13.2033 7.31602L13.188 7.29355L13.1838 7.28754L13.1827 7.28588L13.1824 7.28539L13.1823 7.28523C13.1822 7.28518 13.1822 7.28513 12.7706 7.569ZM12.7706 8.48071C12.6383 8.68973 12.4871 8.93581 12.3362 9.1961C12.1239 9.56227 11.9173 9.94806 11.7653 10.2939C11.6041 10.6605 11.5366 10.9123 11.5366 11.0369C11.5366 11.3642 11.6666 11.6781 11.898 11.9095C12.1294 12.1409 12.4433 12.2709 12.7706 12.2709C13.0978 12.2709 13.4117 12.1409 13.6431 11.9095C13.8745 11.6781 14.0045 11.3642 14.0045 11.0369C14.0045 10.9123 13.937 10.6605 13.7759 10.2939C13.6238 9.94806 13.4173 9.56227 13.205 9.1961C13.0541 8.93581 12.9028 8.68973 12.7706 8.48071Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Palette.vue
Vue
agpl-3.0
2,546
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M7.99996 12.1523C5.0774 12.1523 2.54908 10.4602 1.34315 8.00011C2.54904 5.53993 5.07742 3.84766 8.00006 3.84766C10.9226 3.84766 13.4509 5.53983 14.6569 7.9999C13.451 10.4601 10.9226 12.1523 7.99996 12.1523ZM8.00006 2.84766C4.6151 2.84766 1.69831 4.84769 0.365012 7.72832C0.285227 7.9007 0.285231 8.09955 0.365021 8.27192C1.69837 11.1524 4.61509 13.1523 7.99996 13.1523C11.3849 13.1523 14.3017 11.1523 15.635 8.27168C15.7148 8.0993 15.7148 7.90045 15.635 7.72808C14.3017 4.84758 11.3849 2.84766 8.00006 2.84766ZM9.50057 7.99998C9.50057 8.8284 8.829 9.49998 8.00057 9.49998C7.17214 9.49998 6.50057 8.8284 6.50057 7.99998C6.50057 7.17155 7.17214 6.49998 8.00057 6.49998C8.829 6.49998 9.50057 7.17155 9.50057 7.99998ZM10.5006 7.99998C10.5006 9.38069 9.38128 10.5 8.00057 10.5C6.61986 10.5 5.50057 9.38069 5.50057 7.99998C5.50057 6.61926 6.61986 5.49998 8.00057 5.49998C9.38128 5.49998 10.5006 6.61926 10.5006 7.99998Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Preview.vue
Vue
agpl-3.0
1,172
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(#clip0_3798_46338)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 8C14.25 11.4518 11.4518 14.25 8 14.25C4.54822 14.25 1.75 11.4518 1.75 8C1.75 4.54822 4.54822 1.75 8 1.75C11.4518 1.75 14.25 4.54822 14.25 8ZM15.25 8C15.25 12.0041 12.0041 15.25 8 15.25C3.99594 15.25 0.75 12.0041 0.75 8C0.75 3.99594 3.99594 0.75 8 0.75C12.0041 0.75 15.25 3.99594 15.25 8ZM10.3499 9.64287C10.5472 9.83614 10.5504 10.1527 10.3571 10.3499C10.1639 10.5472 9.84729 10.5504 9.65006 10.3571L7.65004 8.39734L7.49999 8.2503L7.49999 8.04021L7.5 4C7.5 3.72386 7.72386 3.5 8 3.5C8.27614 3.5 8.5 3.72386 8.5 4L8.49999 7.83012L10.3499 9.64287Z" fill="currentColor" /> </g> <defs> <clipPath id="clip0_3798_46338"> <rect width="16" height="16" fill="white" /> </clipPath> </defs> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Recent.vue
Vue
agpl-3.0
1,008
<template> <svg width="1em" height="1em" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" > <rect x="2.5" y="6.5" width="15" height="7" rx="1.5" stroke="currentColor" /> <path d="M10 2.5C10.7956 2.5 11.5587 2.81607 12.1213 3.37868C12.6839 3.94129 13 4.70435 13 5.5V14.5C13 15.2956 12.6839 16.0587 12.1213 16.6213C11.5587 17.1839 10.7956 17.5 10 17.5V17.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> <path d="M13 14.5C13 15.2956 13.3161 16.0587 13.8787 16.6213C14.4413 17.1839 15.2044 17.5 16 17.5V17.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> <path d="M16 2.5C15.2044 2.5 14.4413 2.81607 13.8787 3.37868C13.3161 3.94129 13 4.70435 13 5.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /> </svg> </template> <script> export default { name: "Rename", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/Rename.vue
Vue
agpl-3.0
1,032
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5801 7.52612C12.5801 10.2881 10.3411 12.5271 7.5791 12.5271C4.81714 12.5271 2.57812 10.2881 2.57812 7.52612C2.57812 4.76416 4.81714 2.52515 7.5791 2.52515C10.3411 2.52515 12.5801 4.76416 12.5801 7.52612ZM11.3964 12.1567C10.359 13.0128 9.02913 13.5271 7.5791 13.5271C4.26485 13.5271 1.57812 10.8404 1.57812 7.52612C1.57812 4.21187 4.26485 1.52515 7.5791 1.52515C10.8933 1.52515 13.5801 4.21187 13.5801 7.52612C13.5801 9.0303 13.0266 10.4052 12.1123 11.4584L13.1744 12.5205L13.8035 13.1496L14.118 13.4641L14.2753 13.6214C14.4706 13.8166 14.4706 14.1332 14.2753 14.3285C14.0801 14.5238 13.7635 14.5238 13.5682 14.3285L13.4109 14.1712L13.0964 13.8567L12.4673 13.2276L11.3964 12.1567Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Search.vue
Vue
agpl-3.0
942
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M8.89706 3.30232L13.9907 7.75926L8.89706 12.2162V10.2004C8.89706 9.65068 8.44639 9.19012 7.87909 9.20878C5.896 9.27398 4.50352 9.71888 3.40983 10.4266C2.79328 10.8255 2.28442 11.3005 1.82673 11.8116C2.03135 9.92672 2.63246 8.65396 3.47582 7.80842C4.52935 6.75218 6.04582 6.27703 7.91463 6.20903C8.44662 6.18967 8.89706 5.75833 8.89706 5.20044V3.30232ZM9.14094 2.18695C8.656 1.76263 7.89706 2.10701 7.89706 2.75138V5.20034C7.89677 5.2008 7.89619 5.20163 7.89514 5.20269C7.89132 5.20654 7.88559 5.20942 7.87827 5.20969C5.87665 5.28252 4.0699 5.79678 2.76781 7.10222C1.46324 8.41015 0.75 10.4268 0.75 13.3181C0.75 13.5327 0.886978 13.7234 1.09038 13.7919C1.29377 13.8604 1.51821 13.7915 1.64808 13.6206C2.37078 12.6697 3.03088 11.8628 3.95308 11.2661C4.86185 10.6781 6.06445 10.271 7.89706 10.2087V12.7671C7.89706 13.4115 8.656 13.7559 9.14094 13.3316L14.6492 8.51184C15.1045 8.11343 15.1045 7.4051 14.6492 7.00669L9.14094 2.18695Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Share.vue
Vue
agpl-3.0
1,187
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 3.5C5.5 3.22386 5.27614 3 5 3C4.72386 3 4.5 3.22386 4.5 3.5V11.2931L2.87846 9.67159C2.68319 9.47633 2.36661 9.47633 2.17135 9.67159C1.97609 9.86686 1.97609 10.1834 2.17135 10.3787L4.64622 12.8536C4.75097 12.9583 4.89063 13.0069 5.02774 12.9992C5.15903 12.9921 5.27684 12.9342 5.36195 12.845L7.8282 10.3787C8.02347 10.1834 8.02347 9.86686 7.8282 9.67159C7.63294 9.47633 7.31636 9.47633 7.1211 9.67159L5.5 11.2927V3.5ZM11.3698 3.16295C11.2784 3.06282 11.1468 3 11.0005 3C10.9947 3 10.989 3.0001 10.9832 3.00029C10.8608 3.00432 10.7396 3.05304 10.6462 3.14647L8.17135 5.62134C7.97609 5.8166 7.97609 6.13319 8.17135 6.32845C8.36661 6.52371 8.68319 6.52371 8.87846 6.32845L10.5005 4.70641V12.5C10.5005 12.7761 10.7243 13 11.0005 13C11.2766 13 11.5005 12.7761 11.5005 12.5V4.70784L13.1211 6.32845C13.3164 6.52371 13.6329 6.52371 13.8282 6.32845C14.0235 6.13319 14.0235 5.8166 13.8282 5.62134L11.3698 3.16295Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Sort.vue
Vue
agpl-3.0
1,166
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M9.54802 5.09979L7.98344 2.5L6.41886 5.0998C6.13961 5.56382 5.68411 5.89476 5.1565 6.01695L2.20047 6.70157L4.18954 8.99296C4.54456 9.40194 4.71854 9.93741 4.67172 10.477L4.40937 13.4999L7.20326 12.3162C7.70193 12.105 8.26496 12.105 8.76362 12.3162L11.5575 13.4999L11.2952 10.477C11.2483 9.93741 11.4223 9.40194 11.7773 8.99296L13.7664 6.70157L10.8104 6.01695C10.2828 5.89476 9.82728 5.56382 9.54802 5.09979ZM8.84025 1.98436C8.45159 1.33854 7.51529 1.33855 7.12663 1.98437L5.56205 4.58416C5.42243 4.81617 5.19468 4.98164 4.93087 5.04274L1.97484 5.72736C1.24053 5.89743 0.951195 6.7879 1.4453 7.35711L3.43437 9.64849C3.61188 9.85298 3.69888 10.1207 3.67546 10.3905L3.41311 13.4134C3.34794 14.1643 4.10542 14.7147 4.79946 14.4206L7.59335 13.237C7.84269 13.1314 8.1242 13.1314 8.37353 13.237L11.1674 14.4206C11.8615 14.7147 12.6189 14.1643 12.5538 13.4134L12.2914 10.3905C12.268 10.1207 12.355 9.85298 12.5325 9.64849L14.5216 7.35711C15.0157 6.7879 14.7264 5.89743 13.992 5.72736L11.036 5.04274C10.7722 4.98164 10.5445 4.81617 10.4048 4.58416L8.84025 1.98436Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Star.vue
Vue
agpl-3.0
1,314
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M3.67611 2.46483H5.77031V2.23535C5.77031 1.40693 6.44188 0.735352 7.27031 0.735352H8.72927C9.5577 0.735352 10.2293 1.40692 10.2293 2.23535V2.46483H12.3235H12.8235V2.47314H14C14.2761 2.47314 14.5 2.697 14.5 2.97314C14.5 3.24929 14.2761 3.47314 14 3.47314H12.8235V12.7648C12.8235 14.1455 11.7042 15.2648 10.3235 15.2648H5.67611C4.29539 15.2648 3.17611 14.1455 3.17611 12.7648V3.47314H2C1.72386 3.47314 1.5 3.24929 1.5 2.97314C1.5 2.697 1.72386 2.47314 2 2.47314H3.17611V2.46483H3.67611ZM4.17611 3.47314V12.7648C4.17611 13.5933 4.84768 14.2648 5.67611 14.2648H10.3235C11.1519 14.2648 11.8235 13.5933 11.8235 12.7648V3.47314H4.17611ZM9.22927 2.46483H6.77031V2.23535C6.77031 1.95921 6.99417 1.73535 7.27031 1.73535H8.72927C9.00541 1.73535 9.22927 1.95921 9.22927 2.23535V2.46483ZM6.48633 5.81366C6.76247 5.81366 6.98633 6.03751 6.98633 6.31366V11.3137C6.98633 11.5898 6.76247 11.8137 6.48633 11.8137C6.21019 11.8137 5.98633 11.5898 5.98633 11.3137V6.31366C5.98633 6.03751 6.21019 5.81366 6.48633 5.81366ZM10.0137 6.31366C10.0137 6.03751 9.78981 5.81366 9.51367 5.81366C9.23753 5.81366 9.01367 6.03751 9.01367 6.31366V11.3137C9.01367 11.5898 9.23753 11.8137 9.51367 11.8137C9.78981 11.8137 10.0137 11.5898 10.0137 11.3137V6.31366Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Trash.vue
Vue
agpl-3.0
1,483
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M9.625 4.48975C9.625 5.38721 8.89746 6.11475 8 6.11475C7.10254 6.11475 6.375 5.38721 6.375 4.48975C6.375 3.59228 7.10254 2.86475 8 2.86475C8.89746 2.86475 9.625 3.59228 9.625 4.48975ZM10.625 4.48975C10.625 5.93949 9.44975 7.11475 8 7.11475C6.55025 7.11475 5.375 5.93949 5.375 4.48975C5.375 3.04 6.55025 1.86475 8 1.86475C9.44975 1.86475 10.625 3.04 10.625 4.48975ZM3.33074 11.4858C3.67105 9.95433 5.02935 8.86475 6.59812 8.86475H9.40262C10.9714 8.86475 12.3297 9.95433 12.67 11.4858L12.7627 11.903C12.9603 12.7921 12.2838 13.6354 11.3731 13.6354H4.62765C3.71694 13.6354 3.04045 12.7921 3.23801 11.903L3.33074 11.4858ZM6.59812 7.86475C4.56065 7.86475 2.79654 9.27986 2.35455 11.2688L2.26182 11.6861C1.92548 13.1996 3.0772 14.6354 4.62765 14.6354H11.3731C12.9235 14.6354 14.0753 13.1996 13.7389 11.6861L13.6462 11.2688C13.2042 9.27986 11.4401 7.86475 9.40262 7.86475H6.59812Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/User.vue
Vue
agpl-3.0
1,132
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9011 3.88123C11.9011 4.46851 11.425 4.9446 10.8377 4.9446C10.2504 4.9446 9.77433 4.46851 9.77433 3.88123C9.77433 3.29396 10.2504 2.81787 10.8377 2.81787C11.425 2.81787 11.9011 3.29396 11.9011 3.88123ZM12.9011 3.88123C12.9011 5.0208 11.9773 5.9446 10.8377 5.9446C9.69812 5.9446 8.77433 5.0208 8.77433 3.88123C8.77433 2.74167 9.69812 1.81787 10.8377 1.81787C11.9773 1.81787 12.9011 2.74167 12.9011 3.88123ZM9.45114 6.99219C9.00148 6.99219 8.5673 7.07566 8.16566 7.22954C8.08107 7.26195 7.99794 7.29747 7.91643 7.33599C7.66676 7.45395 7.55999 7.75199 7.67796 8.00167C7.79593 8.25134 8.09396 8.35811 8.34364 8.24014C8.40246 8.21235 8.46243 8.18672 8.52343 8.16335C8.81277 8.0525 9.12581 7.99219 9.45114 7.99219H11.7074C12.9237 7.99219 13.9768 8.83696 14.2406 10.0243L14.3153 10.36C14.4606 11.0142 13.9628 11.6348 13.2927 11.6348H11.936H11.5158H11.3058C11.0296 11.6348 10.8058 11.8586 10.8058 12.1348C10.8058 12.4109 11.0296 12.6348 11.3058 12.6348H11.5158H11.936H13.2927C14.6026 12.6348 15.5756 11.4218 15.2914 10.1431L15.2168 9.80736C14.8513 8.16249 13.3924 6.99219 11.7074 6.99219H9.45114ZM4.29305 9.53964C3.07676 9.53964 2.02365 10.3844 1.7598 11.5717L1.6852 11.9075C1.53982 12.5616 2.03763 13.1822 2.70778 13.1822H8.13458C8.80473 13.1822 9.30254 12.5616 9.15716 11.9075L9.08256 11.5717C8.81871 10.3844 7.7656 9.53964 6.54931 9.53964H4.29305ZM0.783614 11.3548C1.14914 9.70995 2.60806 8.53964 4.29305 8.53964H6.54931C8.2343 8.53964 9.69322 9.70995 10.0587 11.3548L10.1333 11.6905C10.4175 12.9692 9.44448 14.1822 8.13458 14.1822H2.70778C1.39788 14.1822 0.424856 12.9692 0.709013 11.6905L0.783614 11.3548ZM6.74264 5.17084C6.74264 5.90056 6.15108 6.49212 5.42136 6.49212C4.69163 6.49212 4.10008 5.90056 4.10008 5.17084C4.10008 4.44111 4.69163 3.84955 5.42136 3.84955C6.15108 3.84955 6.74264 4.44111 6.74264 5.17084ZM7.74264 5.17084C7.74264 6.45285 6.70337 7.49212 5.42136 7.49212C4.13935 7.49212 3.10008 6.45285 3.10008 5.17084C3.10008 3.88883 4.13935 2.84955 5.42136 2.84955C6.70337 2.84955 7.74264 3.88883 7.74264 5.17084Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/Users.vue
Vue
agpl-3.0
2,282
<template> <svg width="1em" height="1em" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M2 9.99999C2 9.99999 5.2 4.39999 10 4.39999C14.8 4.39999 18 9.99999 18 9.99999C18 9.99999 14.8 15.6 10 15.6C5.2 15.6 2 9.99999 2 9.99999Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square" /> <path d="M10.0001 12.4C11.3256 12.4 12.4001 11.3255 12.4001 10C12.4001 8.67452 11.3256 7.60001 10.0001 7.60001C8.67461 7.60001 7.6001 8.67452 7.6001 10C7.6001 11.3255 8.67461 12.4 10.0001 12.4Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square" /> </svg> </template> <script> export default { name: "View", } </script>
2302_79757062/drive
frontend/src/components/EspressoIcons/View.vue
Vue
agpl-3.0
761
<template> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 3H5.5C6.05228 3 6.5 3.44772 6.5 4V5C6.5 5.55228 6.05228 6 5.5 6H2.5C1.94772 6 1.5 5.55228 1.5 5V4C1.5 3.44772 1.94772 3 2.5 3ZM0.5 4C0.5 2.89543 1.39543 2 2.5 2H5.5C6.60457 2 7.5 2.89543 7.5 4V5C7.5 6.10457 6.60457 7 5.5 7H2.5C1.39543 7 0.5 6.10457 0.5 5V4ZM2.5 10H5.5C6.05228 10 6.5 10.4477 6.5 11V12C6.5 12.5523 6.05228 13 5.5 13H2.5C1.94772 13 1.5 12.5523 1.5 12V11C1.5 10.4477 1.94772 10 2.5 10ZM0.5 11C0.5 9.89543 1.39543 9 2.5 9H5.5C6.60457 9 7.5 9.89543 7.5 11V12C7.5 13.1046 6.60457 14 5.5 14H2.5C1.39543 14 0.5 13.1046 0.5 12V11ZM13.5 3H10.5C9.94772 3 9.5 3.44772 9.5 4V5C9.5 5.55228 9.94772 6 10.5 6H13.5C14.0523 6 14.5 5.55228 14.5 5V4C14.5 3.44772 14.0523 3 13.5 3ZM10.5 2C9.39543 2 8.5 2.89543 8.5 4V5C8.5 6.10457 9.39543 7 10.5 7H13.5C14.6046 7 15.5 6.10457 15.5 5V4C15.5 2.89543 14.6046 2 13.5 2H10.5ZM10.5 10H13.5C14.0523 10 14.5 10.4477 14.5 11V12C14.5 12.5523 14.0523 13 13.5 13H10.5C9.94772 13 9.5 12.5523 9.5 12V11C9.5 10.4477 9.94772 10 10.5 10ZM8.5 11C8.5 9.89543 9.39543 9 10.5 9H13.5C14.6046 9 15.5 9.89543 15.5 11V12C15.5 13.1046 14.6046 14 13.5 14H10.5C9.39543 14 8.5 13.1046 8.5 12V11Z" fill="currentColor" /> </svg> </template>
2302_79757062/drive
frontend/src/components/EspressoIcons/ViewGrid.vue
Vue
agpl-3.0
1,376