mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[web] Fixup .mjs extension in scripts mentions (calls, comments, copybara) (#21969)
* Fixup `.mjs` extension in scripts mentions (calls, comments, copybara) * Replace `.js` by `.*` in copy.bara.sky exclude * Add `services/web/modules/modules-*.mjs` in copy.bara.sky glob GitOrigin-RevId: b3ecb849b44bdf4257cc17f6985f8117a4d662ae
This commit is contained in:
@@ -24,7 +24,7 @@ const argv = minimist(process.argv.slice(2), {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (argv.help || argv._.length > 1) {
|
if (argv.help || argv._.length > 1) {
|
||||||
console.error(`Usage: node scripts/add_user_count_to_csv.js [OPTS] [INPUT-FILE]
|
console.error(`Usage: node scripts/add_user_count_to_csv.mjs [OPTS] [INPUT-FILE]
|
||||||
Looks up the number of users for each domain in the input file and adds
|
Looks up the number of users for each domain in the input file and adds
|
||||||
columns for the number of users in the domain, subdomains, and total.
|
columns for the number of users in the domain, subdomains, and total.
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/* Clear feedback collection before a cutoff date
|
/* Clear feedback collection before a cutoff date
|
||||||
*
|
*
|
||||||
* Usage
|
* Usage
|
||||||
* node scripts/clear_feedback_collection.js 2022-11-01 # dry run mode
|
* node scripts/clear_feedback_collection.mjs 2022-11-01 # dry run mode
|
||||||
* DRY_RUN=false node scripts/clear_feedback_collection.js 2022-11-01 # deletion mode
|
* DRY_RUN=false node scripts/clear_feedback_collection.mjs 2022-11-01 # deletion mode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { db, ObjectId } from '../app/src/infrastructure/mongodb.js'
|
import { db, ObjectId } from '../app/src/infrastructure/mongodb.js'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Script to create projects with sharelatex history for testing
|
// Script to create projects with sharelatex history for testing
|
||||||
// Example:
|
// Example:
|
||||||
// node scripts/create_project.js --user-id=5dca84e11e71ae002ff73bd4 --name="My Test Project" --old-history
|
// node scripts/create_project.mjs --user-id=5dca84e11e71ae002ff73bd4 --name="My Test Project" --old-history
|
||||||
|
|
||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
// Usage:
|
// Usage:
|
||||||
//
|
//
|
||||||
// Save current plan and addon prices to file
|
// Save current plan and addon prices to file
|
||||||
// $ node scripts/recurly/recurly_prices.js --download -o prices.json
|
// $ node scripts/recurly/recurly_prices.mjs --download -o prices.json
|
||||||
//
|
//
|
||||||
// Upload new plan and addon prices (change --dry-run to --commit to make the change)
|
// Upload new plan and addon prices (change --dry-run to --commit to make the change)
|
||||||
// $ node scripts/recurly/recurly_prices.js --upload -f prices.json --dry-run
|
// $ node scripts/recurly/recurly_prices.mjs --upload -f prices.json --dry-run
|
||||||
//
|
//
|
||||||
// File format is JSON of the plans returned by recurly, with an extra _addOns property for the
|
// File format is JSON of the plans returned by recurly, with an extra _addOns property for the
|
||||||
// addOns associated with that plan.
|
// addOns associated with that plan.
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ export default main
|
|||||||
|
|
||||||
if (fileURLToPath(import.meta.url) === process.argv[1]) {
|
if (fileURLToPath(import.meta.url) === process.argv[1]) {
|
||||||
if (argv.help || argv._.length > 1) {
|
if (argv.help || argv._.length > 1) {
|
||||||
console.error(`Usage: node scripts/remove_deleted_users_from_token_access_refs.js [OPTS]
|
console.error(`Usage: node scripts/remove_deleted_users_from_token_access_refs.mjs [OPTS]
|
||||||
Finds or removes deleted user ids from token access fields
|
Finds or removes deleted user ids from token access fields
|
||||||
"tokenAccessReadOnly_refs" and "tokenAccessReadAndWrite_refs" in the "projects" collection.
|
"tokenAccessReadOnly_refs" and "tokenAccessReadAndWrite_refs" in the "projects" collection.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user