CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/sync/editor/string/test/data.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { client_db } from "@cocalc/util/schema";
7
8
export function a_txt() {
9
const project_id = "ae1d6165-1310-4949-b266-e0448fdd065f";
10
const path = "a.txt";
11
const string_id = client_db.sha1(project_id, path);
12
const client_id = "72570709-2eb2-499f-a7d2-38978d8c7393";
13
return {
14
client_id,
15
project_id,
16
path,
17
string_id,
18
init_queries: {
19
syncstrings: [
20
{
21
snapshot_interval: 5,
22
project_id,
23
path,
24
users: [project_id, client_id],
25
string_id,
26
last_active: "2019-01-04T18:24:08.806Z",
27
init: { time: "2019-01-04T18:24:09.878Z", size: 0, error: "" },
28
doctype: '{"type":"string"}',
29
read_only: false,
30
save: { state: "done", error: "", hash: 0, time: 1546626249624 },
31
},
32
],
33
},
34
};
35
}
36
37