Skip to content

Instantly share code, notes, and snippets.

@Julien1138
Julien1138 / Editor.vue
Last active November 1, 2023 01:49
Tiptap collaboration server handles multiple document using namespaces and rooms
<template>
<div class="editor">
<template v-if="editor && !loading">
<div class="count">
{{ count }} {{ count === 1 ? 'user' : 'users' }} connected to {{ projectPath }}/{{ docName }}
</div>
<editor-content class="editor__content" :editor="editor" />
</template>
<em v-else>
Connecting to socket server …
@Julien1138
Julien1138 / Editor.vue
Last active September 3, 2020 07:22
Tiptap collaboration server handles multiple document using namespaces
<template>
<div class="editor">
<template v-if="editor && !loading">
<div class="count">
{{ count }} {{ count === 1 ? 'user' : 'users' }} connected to {{ projectPath }}
</div>
<editor-content class="editor__content" :editor="editor" />
</template>
<em v-else>
Connecting to socket server …
<?php
return [
/*
* Set trusted proxy IP addresses.
*
* Both IPv4 and IPv6 addresses are
* supported, along with CIDR notation.
*
{
"name": "Listen for XDebug on Docker App",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
"hostname": "localhost",
"xdebugSettings": {
<?php
namespace App\Models\Traits;
// use Illuminate\Database\Eloquent\Collection;
use SN\DaisyDiff\DaisyDiff;
use Neurony\Revisions\Traits\HasRevisions;
trait HasRevisionsWithDiffs
{
version: '3.5'
services:
# Our application to debug
app:
container_name: tuto-xdebug
build:
context: ./
dockerfile: ./dockerfile
FROM php:7.4-apache
# Install Xdebug
RUN pecl install -f xdebug
RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini;
<?php
$name = $_REQUEST['name'];
$hello = "Bonjour " . $name . " !";
echo $hello;